优化配置和静态资源
|
|
@ -5,5 +5,6 @@
|
||||||
target/
|
target/
|
||||||
application-dev.yml
|
application-dev.yml
|
||||||
application-pro.yml
|
application-pro.yml
|
||||||
|
application-dem.yml
|
||||||
application-prod.yml
|
application-prod.yml
|
||||||
application-test.yml
|
application-test.yml
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# 项目配置
|
# 项目配置
|
||||||
like:
|
like:
|
||||||
upload-directory: /www/uploads/ # 上传目录
|
upload-directory: /www/uploads/likeadmin-java/ # 上传目录
|
||||||
|
|
||||||
# 框架配置
|
# 框架配置
|
||||||
spring:
|
spring:
|
||||||
|
|
@ -16,4 +16,9 @@ spring:
|
||||||
host: localhost # Redis服务地址
|
host: localhost # Redis服务地址
|
||||||
port: 6379 # Redis端口
|
port: 6379 # Redis端口
|
||||||
password: # Redis密码
|
password: # Redis密码
|
||||||
database: 0 # 数据库索引
|
database: 0 # 数据库索引
|
||||||
|
|
||||||
|
# Mybatis-plus配置 【是否开启SQL日志输出】
|
||||||
|
#mybatis-plus:
|
||||||
|
# configuration:
|
||||||
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
|
@ -9,12 +9,12 @@ server:
|
||||||
# 框架配置
|
# 框架配置
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: pro
|
active: dev
|
||||||
mvc:
|
mvc:
|
||||||
static-path-pattern: /api/static/**
|
static-path-pattern: /api/static/**
|
||||||
# 数据源配置
|
# 数据源配置
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/local_admin_java?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
url: jdbc:mysql://localhost:3306/likeadmin?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
||||||
type: com.zaxxer.hikari.HikariDataSource # 数据源类型
|
type: com.zaxxer.hikari.HikariDataSource # 数据源类型
|
||||||
driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
|
driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
|
||||||
username: root # 数据库账号
|
username: root # 数据库账号
|
||||||
|
|
@ -52,8 +52,6 @@ spring:
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
mapper-locations: classpath*:/mapper/**Mapper.xml # 映射文件路径
|
mapper-locations: classpath*:/mapper/**Mapper.xml # 映射文件路径
|
||||||
typeAliasesPackage: com.mdd.**.mapper
|
typeAliasesPackage: com.mdd.**.mapper
|
||||||
# configuration:
|
|
||||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
||||||
global-config:
|
global-config:
|
||||||
banner: false
|
banner: false
|
||||||
db-config:
|
db-config:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
<!-- 变量配置 -->
|
<!-- 变量配置 -->
|
||||||
<Properties>
|
<Properties>
|
||||||
<property name="LOG_PATTERN" value="%date{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
|
<property name="LOG_PATTERN" value="%date{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
|
||||||
<property name="FILE_PATH" value="/www/like-admin/logs" />
|
<property name="FILE_PATH" value="/www/logs/likeadmin-java/admin" />
|
||||||
<property name="FILE_NAME" value="admin-log4j2" />
|
<property name="FILE_NAME" value="admin-log4j2" />
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ public class GlobalConfig {
|
||||||
public static String publicPrefix = "api/uploads";
|
public static String publicPrefix = "api/uploads";
|
||||||
|
|
||||||
// 上传映射目录
|
// 上传映射目录
|
||||||
public static String uploadDirectory = "/www/like-admin/uploads/";
|
public static String uploadDirectory = "/www/uploads/likeadmin-java/";
|
||||||
|
|
||||||
// 上传图片限制
|
// 上传图片限制
|
||||||
public static Integer uploadImageSize = 1024 * 1024 * 10;
|
public static Integer uploadImageSize = 1024 * 1024 * 10;
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 305 KiB |
|
Before Width: | Height: | Size: 292 KiB After Width: | Height: | Size: 292 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 1022 KiB After Width: | Height: | Size: 1022 KiB |
|
Before Width: | Height: | Size: 247 KiB After Width: | Height: | Size: 247 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
|
Before Width: | Height: | Size: 839 B After Width: | Height: | Size: 839 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
|
@ -0,0 +1,24 @@
|
||||||
|
# 项目配置
|
||||||
|
like:
|
||||||
|
upload-directory: /www/uploads/likeadmin-java/ # 上传目录
|
||||||
|
|
||||||
|
# 框架配置
|
||||||
|
spring:
|
||||||
|
# 数据源配置
|
||||||
|
datasource:
|
||||||
|
url: jdbc:mysql://localhost:3306/【库名称】?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
||||||
|
type: com.zaxxer.hikari.HikariDataSource # 数据源类型
|
||||||
|
driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
|
||||||
|
username: root # 数据库账号
|
||||||
|
password: root # 数据库密码
|
||||||
|
# Redis配置
|
||||||
|
redis:
|
||||||
|
host: localhost # Redis服务地址
|
||||||
|
port: 6379 # Redis端口
|
||||||
|
password: # Redis密码
|
||||||
|
database: 0 # 数据库索引
|
||||||
|
|
||||||
|
# Mybatis-plus配置 【是否开启SQL日志输出】
|
||||||
|
#mybatis-plus:
|
||||||
|
# configuration:
|
||||||
|
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
# 项目配置
|
|
||||||
like:
|
|
||||||
upload-directory: /www/like-admin/uploads/
|
|
||||||
|
|
||||||
# 服务配置
|
# 服务配置
|
||||||
server:
|
server:
|
||||||
port: 8084
|
port: 8084
|
||||||
|
|
@ -11,12 +7,12 @@ server:
|
||||||
# 框架配置
|
# 框架配置
|
||||||
spring:
|
spring:
|
||||||
profiles:
|
profiles:
|
||||||
active: pro
|
active: dev
|
||||||
mvc:
|
mvc:
|
||||||
static-path-pattern: /api/static/**
|
static-path-pattern: /api/static/**
|
||||||
# 数据源配置
|
# 数据源配置
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/local_frame?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
url: jdbc:mysql://localhost:3306/likeadmin?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
||||||
type: com.zaxxer.hikari.HikariDataSource # 数据源类型
|
type: com.zaxxer.hikari.HikariDataSource # 数据源类型
|
||||||
driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
|
driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
|
||||||
username: root # 数据库账号
|
username: root # 数据库账号
|
||||||
|
|
@ -54,8 +50,6 @@ spring:
|
||||||
mybatis-plus:
|
mybatis-plus:
|
||||||
mapper-locations: classpath*:/mapper/**Mapper.xml # 映射文件路径
|
mapper-locations: classpath*:/mapper/**Mapper.xml # 映射文件路径
|
||||||
typeAliasesPackage: com.mdd.**.mapper
|
typeAliasesPackage: com.mdd.**.mapper
|
||||||
# configuration:
|
|
||||||
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
||||||
global-config:
|
global-config:
|
||||||
banner: false
|
banner: false
|
||||||
db-config:
|
db-config:
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
<!-- 变量配置 -->
|
<!-- 变量配置 -->
|
||||||
<Properties>
|
<Properties>
|
||||||
<property name="LOG_PATTERN" value="%date{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
|
<property name="LOG_PATTERN" value="%date{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
|
||||||
<property name="FILE_PATH" value="/www/wwwroot/logs/like-front" />
|
<property name="FILE_PATH" value="/www/logs/likeadmin-java/front" />
|
||||||
<property name="FILE_NAME" value="admin-log4j2" />
|
<property name="FILE_NAME" value="front-log4j2" />
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
<appenders>
|
<appenders>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 305 KiB |
|
Before Width: | Height: | Size: 292 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 1022 KiB |
|
Before Width: | Height: | Size: 247 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 831 B |
|
Before Width: | Height: | Size: 839 B |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |