项目初始化
This commit is contained in:
15
web-mini/README.md
Normal file
15
web-mini/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
## 介绍
|
||||
|
||||
jeesite-web-mini 是一个 JeeSite 极小的内核服务,1秒启动项目。
|
||||
|
||||
一般可用于后台内部数据处理服务,该项目不会初始化界面和权限。
|
||||
|
||||
甚至可以不初始化数据源,是一个非常快的小微服务。
|
||||
|
||||
## 文档
|
||||
|
||||
部署文档:https://jeesite.com/docs/install-deploy/
|
||||
|
||||
常见问题:https://jeesite.com/docs/faq/
|
||||
|
||||
更多文档:https://jeesite.com/docs
|
||||
25
web-mini/bin/docker-build.bat
Normal file
25
web-mini/bin/docker-build.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
rem /**
|
||||
rem * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
rem * No deletion without permission, or be held responsible to law.
|
||||
rem *
|
||||
rem * Author: ThinkGem@163.com
|
||||
rem */
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>Docker<65><72><EFBFBD><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
if defined JAVA_HOME17 (
|
||||
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
|
||||
)
|
||||
call mvn -v
|
||||
echo.
|
||||
|
||||
cd ..
|
||||
call mvn clean package docker:remove docker:build -Dmaven.test.skip=true -U
|
||||
|
||||
cd bin
|
||||
pause
|
||||
22
web-mini/bin/docker-build.sh
Normal file
22
web-mini/bin/docker-build.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# /**
|
||||
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
# * No deletion without permission, or be held responsible to law.
|
||||
# *
|
||||
# * Author: ThinkGem@163.com
|
||||
# *
|
||||
# */
|
||||
echo ""
|
||||
echo "[信息] 打包Web工程,编译Docker镜像。"
|
||||
echo ""
|
||||
|
||||
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
|
||||
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
|
||||
fi
|
||||
mvn -v
|
||||
echo ""
|
||||
|
||||
cd ..
|
||||
mvn clean package docker:remove docker:build -Dmaven.test.skip=true -U
|
||||
|
||||
cd bin
|
||||
20
web-mini/bin/docker/Dockerfile
Normal file
20
web-mini/bin/docker/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM docker.1ms.run/eclipse-temurin:17
|
||||
LABEL maintainer="ThinkGem@163.com"
|
||||
|
||||
ENV TZ=Asia/Shanghai LANG=C.UTF-8 JAVA_OPTS="\
|
||||
-Dspring.profiles.active=prod \
|
||||
-DcustomLogPath=/data"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
#COPY jeesite.lic WEB-INF/
|
||||
COPY ./maven/web.war ./
|
||||
|
||||
VOLUME /tmp /data
|
||||
|
||||
EXPOSE 8991
|
||||
|
||||
ENTRYPOINT ["sh", "-c","\
|
||||
if [ -f 'web.war' ]; then jar -xvf web.war && rm web.war; fi && \
|
||||
cd WEB-INF && exec sh startup.sh\
|
||||
"]
|
||||
40
web-mini/bin/init-data.bat
Normal file
40
web-mini/bin/init-data.bat
Normal file
@@ -0,0 +1,40 @@
|
||||
@echo off
|
||||
rem /**
|
||||
rem * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
rem * No deletion without permission, or be held responsible to law.
|
||||
rem *
|
||||
rem * Author: ThinkGem@163.com
|
||||
rem */
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ݿ⡣
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>״ΰ<D7B4>װ JeeSite <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>װ Module <20><><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>Ѱ<EFBFBD>װ<EFBFBD><D7B0><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD>ԡ<EFBFBD>
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20>ٷ<EFBFBD>Ĭ<EFBFBD><C4AC><EFBFBD>ṩ<EFBFBD>ij<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ݿ<DDBF><E2B9A4><EFBFBD>DZȽϰ<C8BD>ȫ<EFBFBD>ģ<EFBFBD><C4A3><EFBFBD>û<EFBFBD>а<EFBFBD><D0B0><EFBFBD>ɾ<EFBFBD><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҵ<EFBFBD><D2B5><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵĽű<C4BD><C5B1><EFBFBD>
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð汾<C3B0><E6B1BE><EFBFBD><EFBFBD><EFBFBD>ų<EFBFBD><C5B3><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȱ<EFBFBD><C8B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD>ٲ<EFBFBD><D9B2><EFBFBD><EFBFBD><EFBFBD>
|
||||
echo.
|
||||
pause
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
if defined JAVA_HOME17 (
|
||||
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
|
||||
)
|
||||
call mvn -v
|
||||
echo.
|
||||
|
||||
cd ..
|
||||
|
||||
call mvn clean compile -Dmaven.test.skip=true -U
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD><C9A3><EFBFBD><EFBFBD>濪ʼ<E6BFAA><CABC>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>ݿ⡣
|
||||
echo.
|
||||
pause
|
||||
|
||||
set "MAVEN_OPTS=%MAVEN_OPTS% -Xms512m -Xmx1024m"
|
||||
call mvn test -Dmaven.test.skip=false -Dtest=com.jeesite.test.InitData
|
||||
|
||||
cd bin
|
||||
pause
|
||||
41
web-mini/bin/init-data.sh
Normal file
41
web-mini/bin/init-data.sh
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
# /**
|
||||
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
# * No deletion without permission, or be held responsible to law.
|
||||
# *
|
||||
# * Author: ThinkGem@163.com
|
||||
# *
|
||||
# */
|
||||
echo ""
|
||||
echo "[信息] 初始化数据库。"
|
||||
echo ""
|
||||
echo "[信息] 本操作主要用于首次安装 JeeSite 或后安装 Module 的数据表初始化,若模块已安装会自动忽略。"
|
||||
echo ""
|
||||
echo "[信息] 官方默认提供的初始化数据库工具是比较安全的,她没有包含删除您的业务数据表及数据的脚本。"
|
||||
echo ""
|
||||
echo "[信息] 如果你是升级到该版本,不排除你是否升级完整,为安全起见,建议先备份数据库后再操作。"
|
||||
echo ""
|
||||
echo "请按回车键继续 ... "
|
||||
read text
|
||||
|
||||
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
|
||||
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
|
||||
fi
|
||||
mvn -v
|
||||
echo ""
|
||||
|
||||
cd ..
|
||||
|
||||
mvn clean compile -Dmaven.test.skip=true -U
|
||||
echo ""
|
||||
echo "[信息] 依赖下载完成,下面开始初始化数据库。"
|
||||
echo ""
|
||||
echo "请按回车键继续 ... "
|
||||
read text
|
||||
|
||||
MAVEN_OPTS="$MAVEN_OPTS -Xms512m -Xmx1024m"
|
||||
mvn test -Dmaven.test.skip=false -Dtest=com.jeesite.test.InitData
|
||||
|
||||
cd bin
|
||||
echo "请按回车键完成 ... "
|
||||
read text
|
||||
25
web-mini/bin/package.bat
Normal file
25
web-mini/bin/package.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
rem /**
|
||||
rem * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
rem * No deletion without permission, or be held responsible to law.
|
||||
rem *
|
||||
rem * Author: ThinkGem@163.com
|
||||
rem */
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>war/jar<61><72><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
if defined JAVA_HOME17 (
|
||||
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
|
||||
)
|
||||
call mvn -v
|
||||
echo.
|
||||
|
||||
cd ..
|
||||
call mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
|
||||
|
||||
cd bin
|
||||
pause
|
||||
21
web-mini/bin/package.sh
Normal file
21
web-mini/bin/package.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# /**
|
||||
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
# * No deletion without permission, or be held responsible to law.
|
||||
# *
|
||||
# * Author: ThinkGem@163.com
|
||||
# */
|
||||
echo ""
|
||||
echo "[信息] 打包Web工程,生成war/jar包文件。"
|
||||
echo ""
|
||||
|
||||
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
|
||||
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
|
||||
fi
|
||||
mvn -v
|
||||
echo ""
|
||||
|
||||
cd ..
|
||||
mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
|
||||
|
||||
cd bin
|
||||
26
web-mini/bin/run-tomcat.bat
Normal file
26
web-mini/bin/run-tomcat.bat
Normal file
@@ -0,0 +1,26 @@
|
||||
@echo off
|
||||
rem /**
|
||||
rem * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
rem * No deletion without permission, or be held responsible to law.
|
||||
rem *
|
||||
rem * Author: ThinkGem@163.com
|
||||
rem */
|
||||
echo.
|
||||
echo [<5B><>Ϣ] ʹ<><CAB9> Spring Boot Tomcat <20><><EFBFBD><EFBFBD> Web <20><><EFBFBD>̡<EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
if defined JAVA_HOME17 (
|
||||
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
|
||||
)
|
||||
call mvn -v
|
||||
echo.
|
||||
|
||||
cd ..
|
||||
title %cd%
|
||||
set "MAVEN_OPTS=%MAVEN_OPTS% -Xms512m -Xmx1024m"
|
||||
call mvn clean spring-boot:run -Dmaven.test.skip=true
|
||||
|
||||
pause
|
||||
21
web-mini/bin/run-tomcat.sh
Normal file
21
web-mini/bin/run-tomcat.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# /**
|
||||
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
# * No deletion without permission, or be held responsible to law.
|
||||
# *
|
||||
# * Author: ThinkGem@163.com
|
||||
# *
|
||||
# */
|
||||
echo ""
|
||||
echo "[信息] 使用 Spring Boot Tomcat 运行 Web 工程。"
|
||||
echo ""
|
||||
|
||||
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
|
||||
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
|
||||
fi
|
||||
mvn -v
|
||||
echo ""
|
||||
|
||||
cd ..
|
||||
MAVEN_OPTS="$MAVEN_OPTS -Xms512m -Xmx1024m"
|
||||
mvn clean spring-boot:run -Dmaven.test.skip=true
|
||||
34
web-mini/bin/run-web.bat
Normal file
34
web-mini/bin/run-web.bat
Normal file
@@ -0,0 +1,34 @@
|
||||
@echo off
|
||||
rem /**
|
||||
rem * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
rem * No deletion without permission, or be held responsible to law.
|
||||
rem *
|
||||
rem * Author: ThinkGem@163.com
|
||||
rem */
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̡<EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
if defined JAVA_HOME17 (
|
||||
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
|
||||
)
|
||||
call mvn -v
|
||||
echo.
|
||||
|
||||
cd ..
|
||||
call mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
|
||||
cd target
|
||||
|
||||
rem web.war <20><> pom.xml <20><> finalName<6D><65>packaging һ<><D2BB>
|
||||
mkdir app
|
||||
copy web.war app
|
||||
cd app
|
||||
jar -xvf web.war
|
||||
del web.war
|
||||
cd WEB-INF
|
||||
call startup.bat
|
||||
|
||||
pause
|
||||
30
web-mini/bin/run-web.sh
Normal file
30
web-mini/bin/run-web.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
# /**
|
||||
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
# * No deletion without permission, or be held responsible to law.
|
||||
# *
|
||||
# * Author: ThinkGem@163.com
|
||||
# *
|
||||
# */
|
||||
echo ""
|
||||
echo "[信息] 打包Web工程,并运行Web工程。"
|
||||
echo ""
|
||||
|
||||
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
|
||||
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
|
||||
fi
|
||||
mvn -v
|
||||
echo ""
|
||||
|
||||
cd ..
|
||||
mvn clean package spring-boot:repackage -Dmaven.test.skip=true -U
|
||||
cd target
|
||||
|
||||
# web.war 与 pom.xml 中 finalName、packaging 一致
|
||||
mkdir app
|
||||
cp web.war ./app
|
||||
cd app
|
||||
jar -xvf web.war
|
||||
rm web.war
|
||||
cd WEB-INF
|
||||
sh ./startup.sh
|
||||
200
web-mini/pom.xml
Normal file
200
web-mini/pom.xml
Normal file
@@ -0,0 +1,200 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-parent</artifactId>
|
||||
<version>5.15.1.springboot3-SNAPSHOT</version>
|
||||
<relativePath>../parent/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>jeesite-web-mini</artifactId>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<description>Web 服务,最小化加载,是一个小的微服务</description>
|
||||
|
||||
<name>JeeSite Web Mini</name>
|
||||
<url>https://jeesite.com</url>
|
||||
<inceptionYear>2013-Now</inceptionYear>
|
||||
|
||||
<properties>
|
||||
|
||||
<finalName>web</finalName><!-- war 或 jar 包的名称 -->
|
||||
<start-class>com.jeesite.modules.MiniApplication</start-class>
|
||||
|
||||
<!-- Docker setting -->
|
||||
<docker.run.port>8991:8991</docker.run.port>
|
||||
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- MySql -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Framework --><!--suppress VulnerableLibrariesLocal -->
|
||||
<dependency>
|
||||
<groupId>com.jeesite</groupId>
|
||||
<artifactId>jeesite-framework</artifactId>
|
||||
<version>${project.parent.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.quartz-scheduler</groupId>
|
||||
<artifactId>quartz</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.atomikos</groupId>
|
||||
<artifactId>transactions-jdbc</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.atomikos</groupId>
|
||||
<artifactId>transactions-jta</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-ooxml</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-scratchpad</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>net.sf.jmimemagic</groupId>
|
||||
<artifactId>jmimemagic</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>net.coobird</groupId>
|
||||
<artifactId>thumbnailator</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>javase</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.belerweb</groupId>
|
||||
<artifactId>pinyin4j</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.bladejava</groupId>
|
||||
<artifactId>blade-patchca</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk18on</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.fasterxml.woodstox</groupId>
|
||||
<artifactId>woodstox-core</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
<!--<artifactId>spring-boot-starter-undertow</artifactId>-->
|
||||
</dependency>
|
||||
|
||||
<!-- 热部署工具
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency> -->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${finalName}</finalName>
|
||||
<!--<outputDirectory>${project.basedir}/src/main/webapp/WEB-INF/classes/</outputDirectory>-->
|
||||
<plugins>
|
||||
|
||||
<!-- Spring Boot 插件 -->
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<includeSystemScope>true</includeSystemScope>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- War 插件,自定义 war 包名称 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<configuration>
|
||||
<warName>${finalName}</warName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- Eclipse 插件 -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-eclipse-plugin</artifactId>
|
||||
<configuration>
|
||||
<wtpContextName>${finalName}</wtpContextName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
<id>thinkgem</id>
|
||||
<name>WangZhen</name>
|
||||
<email>thinkgem at 163.com</email>
|
||||
<roles><role>Project lead</role></roles>
|
||||
<timezone>+8</timezone>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<organization>
|
||||
<name>JeeSite</name>
|
||||
<url>https://jeesite.com</url>
|
||||
</organization>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>aliyun-repos</id>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>false</enabled></snapshots>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>jeesite-repos</id>
|
||||
<url>https://maven.jeesite.net/repository/maven-public</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>aliyun-repos</id>
|
||||
<url>https://maven.aliyun.com/repository/public</url>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>false</enabled></snapshots>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>jeesite-repos</id>
|
||||
<url>https://maven.jeesite.net/repository/maven-public</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law.
|
||||
*/
|
||||
package com.jeesite.modules;
|
||||
|
||||
import com.jeesite.common.config.Global;
|
||||
import com.jeesite.common.io.FileUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
|
||||
|
||||
/**
|
||||
* Application
|
||||
* @author ThinkGem
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class MiniApplication extends SpringBootServletInitializer {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MiniApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MiniApplication.class, args);
|
||||
logger.info(
|
||||
"\n\n==============================================================\n"
|
||||
+ "\n 启动完成,访问地址:http://127.0.0.1:{}\n"
|
||||
+ "\n==============================================================\n",
|
||||
Global.getProperty("server.port") + FileUtils.path("/"
|
||||
+ Global.getProperty("server.servlet.context-path")
|
||||
+ Global.getAdminPath()) + "/state/server/index");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
|
||||
this.setRegisterErrorPageFilter(false); // 错误页面有容器来处理,而不是SpringBoot
|
||||
return builder.sources(MiniApplication.class);
|
||||
}
|
||||
|
||||
}
|
||||
53
web-mini/src/main/resources/config/application-prod.yml
Normal file
53
web-mini/src/main/resources/config/application-prod.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
# 使用环境配置,只需 JVM 参数里加:-Dspring.profiles.active=prod
|
||||
|
||||
#======================================#
|
||||
#========== Server settings ===========#
|
||||
#======================================#
|
||||
|
||||
server:
|
||||
|
||||
port: 8980
|
||||
servlet:
|
||||
context-path: /js
|
||||
|
||||
#======================================#
|
||||
#========= Database settings ==========#
|
||||
#======================================#
|
||||
|
||||
# 数据库连接
|
||||
jdbc:
|
||||
|
||||
# Mysql 数据库配置
|
||||
type: mysql
|
||||
driver: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://${MYSQL_HOST:127.0.0.1}:${MYSQL_PORT:3306}/${MYSQL_DBNAME:jeesite}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai
|
||||
username: ${MYSQL_USERNAME:jeesite}
|
||||
password: ${MYSQL_PASSWORD:jeesite}
|
||||
testSql: SELECT 1
|
||||
|
||||
# 数据库连接池配置
|
||||
pool:
|
||||
|
||||
# 初始化连接数
|
||||
init: 1
|
||||
# 最小连接数
|
||||
minIdle: 3
|
||||
# 最大连接数
|
||||
maxActive: 20
|
||||
|
||||
#======================================#
|
||||
#========== Spring settings ===========#
|
||||
#======================================#
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
config: classpath:config/logback-spring-prod.xml
|
||||
|
||||
# MyBatis 相关
|
||||
mybatis:
|
||||
|
||||
# Mapper文件刷新线程
|
||||
mapper:
|
||||
refresh:
|
||||
enabled: false
|
||||
153
web-mini/src/main/resources/config/application.yml
Normal file
153
web-mini/src/main/resources/config/application.yml
Normal file
@@ -0,0 +1,153 @@
|
||||
|
||||
#======================================#
|
||||
#========== Project settings ==========#
|
||||
#======================================#
|
||||
|
||||
# 产品或项目名称、软件开发公司名称
|
||||
productName: JeeSite Mini
|
||||
companyName: ThinkGem
|
||||
|
||||
# 产品版本、版权年份
|
||||
productVersion: V5.15
|
||||
copyrightYear: 2026
|
||||
|
||||
# 是否演示模式
|
||||
demoMode: false
|
||||
|
||||
# 专为分离端提供接口服务
|
||||
apiMode: false
|
||||
|
||||
#======================================#
|
||||
#========== Server settings ===========#
|
||||
#======================================#
|
||||
|
||||
server:
|
||||
|
||||
port: 8991
|
||||
servlet:
|
||||
context-path: /js
|
||||
register-default-servlet: false
|
||||
tomcat:
|
||||
uri-encoding: UTF-8
|
||||
max-http-form-post-size: 20MB
|
||||
|
||||
# 当 Nginx 为 https,tomcat 为 http 时,设置该选项为 true
|
||||
schemeHttps: false
|
||||
|
||||
#======================================#
|
||||
#========= Database settings ==========#
|
||||
#======================================#
|
||||
|
||||
# 数据库连接
|
||||
jdbc:
|
||||
|
||||
# Mysql 数据库配置
|
||||
# type: mysql
|
||||
# driver: com.mysql.cj.jdbc.Driver
|
||||
# url: jdbc:mysql://127.0.0.1:3306/jeesite_v5?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=Asia/Shanghai
|
||||
# username: root
|
||||
# password: 123456
|
||||
# testSql: SELECT 1
|
||||
|
||||
# 数据库连接池配置
|
||||
pool:
|
||||
|
||||
# 初始化连接数
|
||||
init: 1
|
||||
# 最小连接数
|
||||
minIdle: 3
|
||||
# 最大连接数
|
||||
maxActive: 20
|
||||
|
||||
#======================================#
|
||||
#========== Framework settings ========#
|
||||
#======================================#
|
||||
|
||||
spring:
|
||||
|
||||
# 应用程序名称
|
||||
application:
|
||||
name: jeesite-web-mini
|
||||
|
||||
# 环境名称(注意:不可设置为 test 它是单元测试专用的名称)
|
||||
profiles:
|
||||
active: default
|
||||
|
||||
# 打印横幅
|
||||
main:
|
||||
banner-mode: "off"
|
||||
lazy-initialization: true
|
||||
|
||||
# # MVC 映射匹配策略
|
||||
# mvc:
|
||||
# pathmatch:
|
||||
# matching-strategy: ANT_PATH_MATCHER
|
||||
|
||||
# JTA XA 事务(spring boot 3)
|
||||
jta:
|
||||
enabled: false
|
||||
|
||||
# 缓存配置
|
||||
cache:
|
||||
# 缓存及会话共享(专业版)
|
||||
isClusterMode: false
|
||||
|
||||
# 日志配置
|
||||
logging:
|
||||
config: classpath:config/logback-spring.xml
|
||||
|
||||
# MyBatis 相关
|
||||
mybatis:
|
||||
|
||||
# Mapper文件刷新线程
|
||||
mapper:
|
||||
refresh:
|
||||
enabled: false
|
||||
|
||||
# 管理基础路径
|
||||
adminPath: /a
|
||||
|
||||
# 前端基础路径
|
||||
frontPath: /f
|
||||
|
||||
# 基础配置(参数、模块、字典)
|
||||
config:
|
||||
enabled: false
|
||||
|
||||
# 用户权限相关(用户、角色、菜单)
|
||||
user:
|
||||
enabled: false
|
||||
|
||||
# 国际化管理
|
||||
lang:
|
||||
enabled: false
|
||||
|
||||
# 任务调度
|
||||
job:
|
||||
enabled: false
|
||||
|
||||
# 代码生成
|
||||
gen:
|
||||
enabled: false
|
||||
|
||||
# 系统监控(默认开启,可关闭)访问地址如下:
|
||||
# 服务监控:http://127.0.0.1:8991/js/a/state/server/index
|
||||
state:
|
||||
enabled: true
|
||||
|
||||
# 核心功能 Controller 开关
|
||||
web:
|
||||
core:
|
||||
enabled: false
|
||||
|
||||
# 文件上传
|
||||
file:
|
||||
enabled: false
|
||||
|
||||
# 消息提醒中心
|
||||
msg:
|
||||
enabled: false
|
||||
|
||||
#======================================#
|
||||
#========== Project settings ==========#
|
||||
#======================================#
|
||||
59
web-mini/src/main/resources/config/logback-spring-prod.xml
Normal file
59
web-mini/src/main/resources/config/logback-spring-prod.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false" scan="false">
|
||||
|
||||
<!-- Log file path -->
|
||||
<property name="log.path" value="${logPath:-${java.io.tmpdir:-.}}/logs" />
|
||||
|
||||
<!-- Framework level setting -->
|
||||
<include resource="config/logger-default.xml" />
|
||||
|
||||
<!-- Production level setting -->
|
||||
<include resource="config/logger-core-prod.xml" />
|
||||
|
||||
<!-- Project level setting -->
|
||||
<!-- <logger name="your.package" level="DEBUG" /> -->
|
||||
|
||||
<!-- Console log output -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{MM-dd HH:mm:ss.SSS} %clr(%-5p) %clr([%-39logger{39}]){cyan} - %m%n%wEx</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file debug output -->
|
||||
<appender name="debug" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/debug.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p ${PID:- } [%15.15t] [%-39logger{39}] [%X{TRACE_ID}] - %m%n%wEx</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file error output -->
|
||||
<appender name="error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p ${PID:- } [%15.15t] [%-39logger{39}] [%X{TRACE_ID}] - %m%n%wEx</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>ERROR</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
|
||||
<root level="WARN">
|
||||
<appender-ref ref="console" />
|
||||
<appender-ref ref="debug" />
|
||||
<appender-ref ref="error" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
56
web-mini/src/main/resources/config/logback-spring.xml
Normal file
56
web-mini/src/main/resources/config/logback-spring.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration debug="false" scan="false">
|
||||
|
||||
<!-- Log file path -->
|
||||
<property name="log.path" value="${logPath:-${java.io.tmpdir:-.}}/logs" />
|
||||
|
||||
<!-- Framework level setting -->
|
||||
<include resource="config/logger-default.xml" />
|
||||
|
||||
<!-- Project level setting -->
|
||||
<!-- <logger name="your.package" level="DEBUG" /> -->
|
||||
|
||||
<!-- Console log output -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{MM-dd HH:mm:ss.SSS} %clr(%-5p) %clr([%-39logger{39}]){cyan} - %m%n%wEx</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file debug output -->
|
||||
<appender name="debug" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/debug.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/debug.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p ${PID:- } [%15.15t] [%-39logger{39}] [%X{TRACE_ID}] - %m%n%wEx</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- Log file error output -->
|
||||
<appender name="error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
|
||||
<maxFileSize>50MB</maxFileSize>
|
||||
<maxHistory>30</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p ${PID:- } [%15.15t] [%-39logger{39}] [%X{TRACE_ID}] - %m%n%wEx</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<level>ERROR</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
|
||||
<root level="WARN">
|
||||
<appender-ref ref="console" />
|
||||
<appender-ref ref="debug" />
|
||||
<appender-ref ref="error" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
BIN
web-mini/src/main/resources/static/favicon.png
Normal file
BIN
web-mini/src/main/resources/static/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
23
web-mini/src/main/resources/views/include/csslibs.html
Normal file
23
web-mini/src/main/resources/views/include/csslibs.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<%/* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law. */ %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/fonts/font-icons.min.css">
|
||||
<link rel="stylesheet" href="${ctxStatic}/bootstrap/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="${ctxStatic}/select2/4.0/select2.css?${_version}">
|
||||
<link rel="stylesheet" href="${ctxStatic}/icheck/1.0/minimal/grey.css?${_version}">
|
||||
<% if (@ListUtils.inString('zTree', libs!)){ %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/jquery-ztree/3.5/css/awesome/zTreeStyle.css?${_version}">
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('tabPage', libs!)){ %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/wdScrollTab/css/TabPanel.css?${_version}">
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('dataGrid', libs!)){ %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/jqGrid/4.7/css/ui.jqgrid.css?${_version}">
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('layout', libs!)){ %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/jquery-plugins/jquery.layout-latest.css?${_version}">
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('fileupload', libs!)){ %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/webuploader/webuploader.extend.css?${_version}">
|
||||
<% } %>
|
||||
<link rel="stylesheet" href="${ctxStatic}/adminlte/css/AdminLTE.min.css?${_version}">
|
||||
<link rel="stylesheet" href="${ctxStatic}/common/jeesite.css?${_version}">
|
||||
11
web-mini/src/main/resources/views/include/head.html
Normal file
11
web-mini/src/main/resources/views/include/head.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<%/* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law. */%>
|
||||
<meta charset="utf-8"><meta content="webkit" name="renderer"/><meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="keywords" content="PoweredByJeeSiteV4.0"/><meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
|
||||
<meta name="description" content="PoweredByJeeSiteV4.0"/><meta content="no-cache" http-equiv="Pragma"/><meta http-equiv="Expires" content="0"/>
|
||||
<meta content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
|
||||
<title>${(isNotBlank(title!) ? title! + ' - ' : '') + @Global.getConfig('productName')}</title>
|
||||
<link rel="shortcut icon" href="${ctxStatic}/favicon.png" type="image/png">
|
||||
<script src="${ctxPath}/global.min.js?ctx=${ctx}"></script>
|
||||
<script src="${ctxStatic}/jquery/jquery-3.7.1.min.js"></script>
|
||||
<script src="${ctxStatic}/jquery/jquery-migrate-3.5.0.min.js"></script>
|
||||
48
web-mini/src/main/resources/views/include/jslibs.html
Normal file
48
web-mini/src/main/resources/views/include/jslibs.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<%/* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law. */ %>
|
||||
<script src="${ctxStatic}/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="${ctxStatic}/select2/4.0/select2.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/select2/4.0/i18n/${lang()}.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/layer/3.5/layer.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/laydate/5.3/laydate.js?${_version}"></script>
|
||||
<% if (@ListUtils.inString('zTree', libs!)){ %>
|
||||
<script src="${ctxStatic}/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString(['tabPage', 'dataGrid', 'fileupload'], libs!)){ %>
|
||||
<script src="${ctxStatic}/jquery/jquery-ui-sortable-1.13.2.min.js"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('tabPage', libs!)){ %>
|
||||
<script src="${ctxStatic}/wdScrollTab/js/TabPanel.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/wdScrollTab/js/TabPanel.extend.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/wdScrollTab/js/TabPanel_i18n.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('dataGrid', libs!)){ %>
|
||||
<script src="${ctxStatic}/jqGrid/4.7/js/jquery.jqGrid.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/jqGrid/4.7/js/jquery.jqGrid.extend.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/jqGrid/4.7/js/i18n/${lang()}.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('validate', libs!)){ %>
|
||||
<script src="${ctxStatic}/jquery-validation/jquery.validate.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/jquery-validation/localization/messages_${lang()}.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/jquery-validation/jquery.validate.extend.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('layout', libs!)){ %>
|
||||
<script src="${ctxStatic}/jquery/jquery-ui-draggable-1.13.2.min.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/jquery/jquery-ui-effect-1.13.2.min.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/jquery-plugins/jquery.layout-latest.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('inputmask', libs!)){ %>
|
||||
<script src="${ctxStatic}/jquery-plugins/jquery.inputmask.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('fileupload', libs!)){ %>
|
||||
<script src="${ctxStatic}/webuploader/webuploader.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/webuploader/webuploader.extend.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/webuploader/i18n/${lang()}.js?${_version}"></script>
|
||||
<% } %>
|
||||
<% if (@ListUtils.inString('ueditor', libs!)){ %>
|
||||
<script src="${ctxStatic}/ueditor/1.4/ueditor.config.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/ueditor/1.4/ueditor.all.js?${_version}"></script>
|
||||
<script src="${ctxStatic}/ueditor/1.4/lang/${lang()}/${lang()}.js?${_version}"></script>
|
||||
<% } %>
|
||||
<script src="${ctxStatic}/common/jeesite.js?${_version}"></script>
|
||||
<!--<script src="${ctxStatic}/common/i18n/jeesite_${lang()}.js?${_version}"></script>-->
|
||||
12
web-mini/src/main/resources/views/layouts/default.html
Normal file
12
web-mini/src/main/resources/views/layouts/default.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<%/* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
* No deletion without permission, or be held responsible to law. */ %>
|
||||
<% print('<'+'!DOC'+'TYPE html'+'>'); %>
|
||||
<% print('<'+'html'+'><'+'head'+'>'); %>
|
||||
<% include('/include/head.html', {title: text(title!)}){} %>
|
||||
<% include('/include/csslibs.html', {libs: libs!}){} %>
|
||||
</head><body class="hold-transition ${bodyClass!}">
|
||||
<% if (!@ListUtils.inString('layout', libs!)){ %>
|
||||
<div class="wrapper">${layoutContent}</div>
|
||||
<% }else{ %>${layoutContent}<% } %>
|
||||
<a id="scroll-up" href="#" class="btn btn-sm hide"><i class="fa fa-angle-double-up"></i></a>
|
||||
<% include('/include/jslibs.html', {libs: libs!}){} %>
|
||||
57
web-mini/src/main/webapp/WEB-INF/startup.bat
Normal file
57
web-mini/src/main/webapp/WEB-INF/startup.bat
Normal file
@@ -0,0 +1,57 @@
|
||||
@echo off
|
||||
rem /**
|
||||
rem * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
rem * No deletion without permission, or be held responsible to law.
|
||||
rem *
|
||||
rem * Author: ThinkGem@163.com
|
||||
rem */
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̡<EFBFBD>
|
||||
echo.
|
||||
rem pause
|
||||
rem echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
if defined JAVA_HOME17 (
|
||||
set "JAVA_HOME=%JAVA_HOME17%" & set "PATH=%JAVA_HOME17%\bin;%PATH%"
|
||||
)
|
||||
call mvn -v
|
||||
echo.
|
||||
|
||||
title %cd%
|
||||
|
||||
rem <20><><EFBFBD><EFBFBD>JDKĿ¼
|
||||
rem set "JAVA_HOME=%cd%\jdk1.8.0_x64"
|
||||
|
||||
rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><C2B7>
|
||||
set "CLASS_PATH=%cd%/../"
|
||||
|
||||
rem <20>Ż<EFBFBD>JVM<56><4D><EFBFBD><EFBFBD>
|
||||
set "JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m"
|
||||
|
||||
rem <20><>ʽһ<CABD><D2BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ⲿ<EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>飩
|
||||
rem set "JAVA_OPTS=%JAVA_OPTS% -Dspring.config.location=%cd%\app.yml"
|
||||
|
||||
rem <20><>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD>ز<EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
||||
rem set "JAVA_OPTS=%JAVA_OPTS% -Dspring.profiles.active=prod"
|
||||
|
||||
if "%JAVA_HOME%" == "" goto noJavaHome
|
||||
if not "%JAVA_HOME%" == "" goto gotJavaHome
|
||||
goto end
|
||||
|
||||
:noJavaHome
|
||||
set RUN_JAVA=java
|
||||
goto runJava
|
||||
|
||||
:gotJavaHome
|
||||
set "RUN_JAVA=%JAVA_HOME%\bin\java"
|
||||
goto runJava
|
||||
|
||||
:runJava
|
||||
call "%RUN_JAVA%" -cp %CLASS_PATH% %JAVA_OPTS% org.springframework.boot.loader.launch.WarLauncher %*
|
||||
goto end
|
||||
|
||||
:end
|
||||
pause
|
||||
41
web-mini/src/main/webapp/WEB-INF/startup.sh
Normal file
41
web-mini/src/main/webapp/WEB-INF/startup.sh
Normal file
@@ -0,0 +1,41 @@
|
||||
#!/bin/sh
|
||||
# /**
|
||||
# * Copyright (c) 2013-Now https://jeesite.com All rights reserved.
|
||||
# * No deletion without permission, or be held responsible to law.
|
||||
# *
|
||||
# * Author: ThinkGem@163.com
|
||||
# */
|
||||
echo ""
|
||||
echo "[信息] 运行Web工程。"
|
||||
echo ""
|
||||
|
||||
if [ -n "$JAVA_HOME17" ] && [ -d "$JAVA_HOME17" ]; then
|
||||
export JAVA_HOME="$JAVA_HOME17" PATH="$JAVA_HOME17/bin:$PATH"
|
||||
fi
|
||||
mvn -v
|
||||
echo ""
|
||||
|
||||
cd "$(cd "$(dirname "$0")"; pwd)"
|
||||
|
||||
# 设置JDK目录
|
||||
# JAVA_HOME="$PWD/jdk1.8.0_x64"
|
||||
|
||||
# 设置类加载路径
|
||||
CLASS_PATH="$PWD/../"
|
||||
|
||||
# 优化JVM参数
|
||||
# JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx1024m"
|
||||
|
||||
# 方式一、配置外部自定义的属性文件(建议)
|
||||
# JAVA_OPTS="$JAVA_OPTS -Dspring.config.location=$PWD/app.yml"
|
||||
|
||||
# 方式二、配置环境名称,加载不同的属性文件
|
||||
# JAVA_OPTS="$JAVA_OPTS -Dspring.profiles.active=prod"
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
RUN_JAVA=java
|
||||
else
|
||||
RUN_JAVA="$JAVA_HOME"/bin/java
|
||||
fi
|
||||
|
||||
exec "$RUN_JAVA" -cp $CLASS_PATH $JAVA_OPTS org.springframework.boot.loader.launch.WarLauncher $@
|
||||
Reference in New Issue
Block a user