无用的
@ -1,5 +0,0 @@
|
||||
#Generated by Maven
|
||||
#Sat Jun 29 14:55:11 CST 2024
|
||||
version=1.0
|
||||
groupId=net.jjjerp
|
||||
artifactId=bootstrap
|
||||
@ -1,16 +0,0 @@
|
||||
net\jjjerp\SpringBootJjjApplication.class
|
||||
net\jjjerp\config\RestTemplateConfig.class
|
||||
net\jjjerp\config\Swagger2Config$ApiModelPropertyBuilderPlugin.class
|
||||
net\jjjerp\config\MybatisPlusConfig.class
|
||||
net\jjjerp\config\JjjNameGenerator.class
|
||||
net\jjjerp\aop\LogAop.class
|
||||
net\jjjerp\config\Swagger2Config.class
|
||||
net\jjjerp\config\SpringBootJjjWebMvcConfig.class
|
||||
net\jjjerp\config\MybatisPlusConfig$1.class
|
||||
net\jjjerp\config\RedisTemplateConfig.class
|
||||
net\jjjerp\config\ShiroConfig.class
|
||||
net\jjjerp\config\SpringBootJjjConfig.class
|
||||
net\jjjerp\handler\GlobalExceptionHandler.class
|
||||
net\jjjerp\config\JacksonConfig.class
|
||||
net\jjjerp\config\RedisCacheConfig.class
|
||||
net\jjjerp\config\SpringBootJjjCorsConfig.class
|
||||
@ -1,14 +0,0 @@
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\MybatisPlusConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\SpringBootJjjConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\SpringBootJjjWebMvcConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\JjjNameGenerator.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\handler\GlobalExceptionHandler.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\ShiroConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\SpringBootJjjCorsConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\aop\LogAop.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\RestTemplateConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\Swagger2Config.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\JacksonConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\RedisCacheConfig.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\SpringBootJjjApplication.java
|
||||
D:\IdeaProjects\jiujiujia\svn\jjj_erp_java\jjj_erp\bootstrap\src\main\java\net\jjjerp\config\RedisTemplateConfig.java
|
||||
@ -1,41 +0,0 @@
|
||||
server:
|
||||
port: 8892
|
||||
|
||||
spring-boot-jjj:
|
||||
# 是否启用ansi控制台输出有颜色的字体,dev环境建议开启,服务器环境设置为false
|
||||
enable-ansi: false
|
||||
# 当前环境服务IP地址/域名
|
||||
server-ip: http://erp3.huadeng.fun
|
||||
# server-ip: http://192.168.31.226:8892
|
||||
# 文件上传下载配置
|
||||
upload-path: /www/wwwroot/erp3.huadeng.fun/uploads
|
||||
# AOP配置
|
||||
aop:
|
||||
# Aop日志配置
|
||||
log:
|
||||
# NONE:不打印日志
|
||||
# ORDER:请求和响应日志,按照执行顺序分开打印
|
||||
# LINE:方法执行结束时,连续分开打印请求和响应日志
|
||||
# MERGE:方法执行结束时,合并请求和响应日志,同时打印
|
||||
log-print-type: NONE
|
||||
# logback.xml中有详细的日志配置
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://127.0.0.1:3306/jjj_erp_git?autoReconnect=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: cLGfTNk3sBRmRBnw
|
||||
|
||||
# Redis配置
|
||||
redis:
|
||||
database: 0
|
||||
host: localhost
|
||||
password: 123456
|
||||
port: 6379
|
||||
|
||||
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
logging:
|
||||
file:
|
||||
path: /www/wwwroot/erp3.huadeng.fun/logs
|
||||
@ -1,381 +0,0 @@
|
||||
# spring-boot-jjj Common Config
|
||||
|
||||
############################# 访问路径、端口tomcat start #############################
|
||||
server:
|
||||
port: 8892
|
||||
servlet:
|
||||
context-path: /api
|
||||
encoding:
|
||||
charset: UTF-8
|
||||
enabled: true
|
||||
force: true
|
||||
tomcat:
|
||||
threads:
|
||||
max: 1000
|
||||
min-spare: 30
|
||||
uri-encoding: UTF-8
|
||||
############################# 访问路径、端口tomcat end ###############################
|
||||
|
||||
################################ spring config start ###############################
|
||||
spring:
|
||||
application:
|
||||
name: spring-boot-jjj
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
banner:
|
||||
charset: UTF-8
|
||||
location: classpath:config/banner.txt
|
||||
servlet:
|
||||
# 文件上传配置
|
||||
multipart:
|
||||
# 指定上传文件的临时目录
|
||||
location: /opt/upload/tmp
|
||||
# 单个文件最大值
|
||||
max-file-size: 10MB
|
||||
# 单个请求文件总计最大值
|
||||
max-request-size: 100MB
|
||||
mvc:
|
||||
async:
|
||||
request-timeout: 20000
|
||||
|
||||
# 当前项目maven激活环境,例如:dev/test/uat/prod,对应pom.xml中profile设置值
|
||||
---
|
||||
spring:
|
||||
profiles:
|
||||
active: prod
|
||||
|
||||
# logback.xml中有详细的日志配置
|
||||
logging:
|
||||
config: classpath:config/logback.xml
|
||||
# 方便Spring Boot Admin页面上实时查看日志
|
||||
file:
|
||||
name: logs/${spring.application.name}.log
|
||||
path: ./logs
|
||||
################################ spring config end #################################
|
||||
|
||||
|
||||
############################## spring-boot-jjj start ##############################
|
||||
spring-boot-jjj:
|
||||
# 当前版本号
|
||||
project-version: '1.0'
|
||||
# 是否启用ansi控制台输出有颜色的字体
|
||||
enable-ansi: true
|
||||
# 服务器IP地址或域名
|
||||
server-ip: http://127.0.0.1:${server.port}
|
||||
# 是否启用验证码
|
||||
enable-verify-code: false
|
||||
# 实现BaseEnum接口的枚举包
|
||||
enum-packages: net.jjjerp.framework.common.enums
|
||||
# Swagger路径
|
||||
swagger-paths: /swagger-ui.html,/docs,/doc.html,/swagger-resources/**,/webjars/**,/v2/api-docs,/csrf,/v2/api-docs-ext,/null/swagger-resources/**
|
||||
# Filter配置
|
||||
filter:
|
||||
request:
|
||||
enable: true
|
||||
url-patterns: /*
|
||||
order: 1
|
||||
async: true
|
||||
xss:
|
||||
enable: true
|
||||
url-patterns: /*
|
||||
order: 2
|
||||
async: true
|
||||
|
||||
# 拦截器配置
|
||||
interceptor:
|
||||
permission:
|
||||
enable: false
|
||||
include-paths: /**
|
||||
resource:
|
||||
enable: false
|
||||
include-paths: ${spring-boot-jjj.resource-access-patterns}
|
||||
upload:
|
||||
enable: false
|
||||
include-paths: /uploads/**
|
||||
download:
|
||||
enable: false
|
||||
include-paths: /download/**
|
||||
|
||||
# AOP配置
|
||||
aop:
|
||||
# Aop日志配置
|
||||
log:
|
||||
# 是否启用
|
||||
enable: true
|
||||
# 是否启用requestId
|
||||
enable-request-id: true
|
||||
# requestId生成规则: UUID/IDWORK
|
||||
request-id-type: IDWORK
|
||||
# NONE:不打印日志
|
||||
# ORDER:请求和响应日志,按照执行顺序分开打印
|
||||
# LINE:方法执行结束时,连续分开打印请求和响应日志
|
||||
# MERGE:方法执行结束时,合并请求和响应日志,同时打印
|
||||
log-print-type: ORDER
|
||||
# 请求日志在控制台是否格式化输出,local环境建议开启,服务器环境设置为false
|
||||
request-log-format: true
|
||||
# 响应日志在控制台是否格式化输出,local环境建议开启,服务器环境设置为false
|
||||
response-log-format: true
|
||||
# 排除的路径
|
||||
exclude-paths: /,/csrf
|
||||
# 操作日志配置
|
||||
operation-log:
|
||||
# 是否启用
|
||||
enable: true
|
||||
# 排除的路径
|
||||
exclude-paths:
|
||||
# 登录日志配置
|
||||
login-log:
|
||||
# 是否启用
|
||||
enable: true
|
||||
# 登录地址
|
||||
login-path: /admin/passport/login
|
||||
# 登出地址
|
||||
logout-path: /admin/passport/logout
|
||||
|
||||
# 文件上传下载配置
|
||||
# 上传路径配置
|
||||
upload-path: /opt/resource/uploads/
|
||||
# 资源访问路径
|
||||
resource-access-path: /resource/
|
||||
# 资源访问路径匹配:/resource/**
|
||||
resource-access-patterns: ${spring-boot-jjj.resource-access-path}**
|
||||
# 资源访问全路径前缀:http://127.0.0.1:8888/resource/
|
||||
resource-access-url: ${spring-boot-jjj.server-ip}${server.servlet.context-path}${spring-boot-jjj.resource-access-path}
|
||||
# 静态资源访问目录
|
||||
static-access-url: ${spring-boot-jjj.server-ip}${server.servlet.context-path}/static/
|
||||
# 全局允许上传的类型
|
||||
allow-upload-file-extensions: jpg,png,docx,xlsx,pptx,pdf
|
||||
# 全局允许下载的类型
|
||||
allow-download-file-extensions: jpg,png,docx,xlsx,pptx,pdf
|
||||
# 租户忽略表
|
||||
ignore_tables: jjjerp_region,jjjerp_message,jjjerp_message_field,jjjerp_material_property
|
||||
|
||||
############################ CORS start ############################
|
||||
# CORS跨域配置,默认允许跨域
|
||||
cors:
|
||||
# 是否启用跨域,默认启用
|
||||
enable: true
|
||||
# CORS过滤的路径,默认:/**
|
||||
path: /**
|
||||
# 允许访问的源
|
||||
allowed-origins: '*'
|
||||
# 允许访问的请求头
|
||||
allowed-headers: '*'
|
||||
# 是否允许发送cookie
|
||||
allow-credentials: true
|
||||
# 允许访问的请求方式
|
||||
allowed-methods: OPTION,GET,POST
|
||||
# 允许响应的头
|
||||
exposed-headers: token
|
||||
# 该响应的有效时间默认为30分钟,在有效时间内,浏览器无须为同一请求再次发起预检请求
|
||||
max-age: 1800
|
||||
|
||||
############################ CORS end ##############################
|
||||
|
||||
########################## Resource start ##########################
|
||||
# 静态资源访问配置
|
||||
resource-handlers: |
|
||||
/static/**=classpath:/static/
|
||||
swagger-ui.html=classpath:/META-INF/resources/
|
||||
/webjars/**=classpath:/META-INF/resources/webjars/
|
||||
doc.html=classpath:/META-INF/resources/
|
||||
########################## Resource end ############################
|
||||
|
||||
######################## Spring Shiro start ########################
|
||||
shiro:
|
||||
# 是否启用
|
||||
enable: true
|
||||
# 权限配置
|
||||
anon:
|
||||
# 排除静态资源
|
||||
- /static/**,/templates/**
|
||||
# 排除Swagger
|
||||
- ${spring-boot-jjj.swagger-paths}
|
||||
# 排除actuator
|
||||
- /actuator/**
|
||||
- # 排除首页
|
||||
- /,/index.html
|
||||
# front模块
|
||||
- /front/**
|
||||
# admin模块
|
||||
- /saas/passport/login
|
||||
# shop模块
|
||||
- /admin/index/base,/admin/passport/login
|
||||
# job模块
|
||||
- /job/**
|
||||
# 多行字符串权限配置
|
||||
filter-chain-definitions: |
|
||||
/resource/**=anon
|
||||
/uploads/**=anon
|
||||
/verificationCode/**=anon
|
||||
/enum=anon
|
||||
/getSysUserInfo=anon
|
||||
|
||||
######################## Spring Shiro end ##########################
|
||||
|
||||
############################ JWT start #############################
|
||||
jwt:
|
||||
# token请求头名称
|
||||
token-name: token
|
||||
# jwt密钥
|
||||
secret: 888888
|
||||
# 发行人
|
||||
issuer: ${spring.application.name}
|
||||
# 观众
|
||||
audience: web
|
||||
# 默认过期时间1小时,单位:秒
|
||||
expire-second: 36000
|
||||
# 是否刷新token
|
||||
refresh-token: true
|
||||
# 刷新token的时间间隔,默认10分钟,单位:秒
|
||||
refresh-token-countdown: 600
|
||||
# redis校验jwt token是否存在,可选
|
||||
redis-check: true
|
||||
# true: 同一个账号只能是最后一次登录token有效,false:同一个账号可多次登录
|
||||
single-login: false
|
||||
# 盐值校验,如果不加自定义盐值,则使用secret校验
|
||||
salt-check: true
|
||||
############################ JWT end ###############################
|
||||
|
||||
############################### spring-boot-jjj end ###############################
|
||||
|
||||
|
||||
############################### mybatis-plus start #################################
|
||||
mybatis-plus:
|
||||
# 启动时是否检查MyBatis XML文件是否存在
|
||||
check-config-location: true
|
||||
# 支持统配符 * 或者 ; 分割
|
||||
typeEnumsPackage: net.jjjerp.*.enums
|
||||
# MyBatis原生配置
|
||||
configuration:
|
||||
# 字段名称下划线转驼峰命名
|
||||
map-underscore-to-camel-case: true
|
||||
global-config:
|
||||
db-config:
|
||||
# 全局默认主键类型
|
||||
id-type: auto
|
||||
# 逻辑已删除值(默认为 1)
|
||||
logic-delete-value: 1
|
||||
# 逻辑未删除值(默认为 0)
|
||||
logic-not-delete-value: 0
|
||||
# 表前缀
|
||||
table-prefix: jjjerp_
|
||||
configuration-properties:
|
||||
# 自定义sql中表名带前缀
|
||||
prefix: jjjerp_
|
||||
# mapper xml映射路径
|
||||
mapper-locations: classpath*:mapper/**/*Mapper.xml
|
||||
################################ mybatis-plus end ##################################
|
||||
|
||||
|
||||
############################### HikariCP 数据源配置 start ################################
|
||||
---
|
||||
spring:
|
||||
datasource:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
type: com.zaxxer.hikari.HikariDataSource
|
||||
cachePrepStmts: true
|
||||
prepStmtCacheSize: 300
|
||||
prepStmtCacheSqlLimit: 2048
|
||||
useServerPrepStmts: true
|
||||
useLocalSessionState: true
|
||||
rewriteBatchedStatements: true
|
||||
cacheResultSetMetadata: true
|
||||
cacheServerConfiguration: true
|
||||
elideSetAutoCommits: true
|
||||
maintainTimeStats: false
|
||||
hikari:
|
||||
minimum-idle: 10
|
||||
maximum-pool-size: 20
|
||||
idle-timeout: 10000
|
||||
max-lifetime: 1800000
|
||||
connection-timeout: 30000
|
||||
############################### HikariCP 数据源配置 end ################################
|
||||
|
||||
|
||||
############################### Redis 公共配置 start ###############################
|
||||
---
|
||||
spring:
|
||||
redis:
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 200
|
||||
max-idle: 8
|
||||
max-wait: 10s
|
||||
min-idle: 2
|
||||
shutdown-timeout: 3s
|
||||
############################### Redis 公共配置 end ##################################
|
||||
|
||||
|
||||
#################################### Swagger start #################################
|
||||
---
|
||||
spring-boot-jjj:
|
||||
swagger:
|
||||
# 是否启用
|
||||
enable: true
|
||||
base:
|
||||
# 扫描的包,多个包使用逗号隔开
|
||||
package: net.jjjerp
|
||||
contact:
|
||||
email: 279517889@qq.com
|
||||
name: jjjerp
|
||||
url: https://www.jjjshop.net
|
||||
description:
|
||||
title: ${spring.application.name} API Documents
|
||||
version: 1.0
|
||||
# 自定义参数配置,可配置N个
|
||||
parameter-config:
|
||||
- name: ${spring-boot-jjj.jwt.token-name}
|
||||
description: Token Request Header
|
||||
# header, cookie, body, query
|
||||
type: header
|
||||
data-type: String
|
||||
required: false
|
||||
# 测试接口时,自动填充token的值
|
||||
default-value:
|
||||
|
||||
# knife4j配置
|
||||
knife4j:
|
||||
enable: ${spring-boot-jjj.swagger.enable}
|
||||
basic:
|
||||
enable: false
|
||||
username: admin
|
||||
password: admin
|
||||
|
||||
#################################### Swagger end ###################################
|
||||
|
||||
|
||||
############################## Spring boot admin start ##############################
|
||||
|
||||
# 开启和暴露端点
|
||||
management:
|
||||
endpoint:
|
||||
health:
|
||||
show-details: ALWAYS
|
||||
logfile:
|
||||
#可在线查看日志
|
||||
enabled: true
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: '*'
|
||||
|
||||
# 自定义项目信息,Spring Boot Admin展示使用
|
||||
info:
|
||||
project-groupId: 'net.jjjerp'
|
||||
project-name: ${spring.application.name}
|
||||
project-finalName: 'jjj-erp-1.0'
|
||||
project-author: jjjerp
|
||||
project-description: ${spring.application.name} project
|
||||
project-sourceEncoding: 'UTF-8'
|
||||
project-spring-boot-version: '2.3.12.RELEASE'
|
||||
project-mybatis-plus-version: '3.4.1'
|
||||
project-version: '1.0'
|
||||
project-website: 'https://www.jjjshop.net'
|
||||
project-home: ${spring-boot-jjj.server-ip}${server.servlet.context-path}
|
||||
project-swagger: ${spring-boot-jjj.server-ip}${server.servlet.context-path}/swagger-ui.html
|
||||
project-knife4j: ${spring-boot-jjj.server-ip}${server.servlet.context-path}/doc.html
|
||||
############################## Spring boot admin end ###############################
|
||||
|
||||
@ -1,13 +0,0 @@
|
||||
${AnsiColor.BLUE}
|
||||
_ _ _ _
|
||||
(_) | | | | | |
|
||||
___ _ __ _ __ _ _ __ __ _ ______| |__ ___ ___ | |_ ______ _ __ | |_ _ ___
|
||||
/ __| '_ \| '__| | '_ \ / _` |______| '_ \ / _ \ / _ \| __|______| '_ \| | | | / __|
|
||||
\__ \ |_) | | | | | | | (_| | | |_) | (_) | (_) | |_ | |_) | | |_| \__ \
|
||||
|___/ .__/|_| |_|_| |_|\__, | |_.__/ \___/ \___/ \__| | .__/|_|\__,_|___/
|
||||
| | __/ | | |
|
||||
|_| |___/ |_|
|
||||
|
||||
${AnsiColor.YELLOW} :: Spring Boot :: ${AnsiColor.WHITE}(v2.3.12.RELEASE)
|
||||
${AnsiColor.YELLOW} :: jjj-erp :: ${AnsiColor.WHITE}(v1.0)
|
||||
https://www.jjjshop.net
|
||||
@ -1,89 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<property name="CONTEXT_NAME" value="spring-boot-jjj"/>
|
||||
<springProperty name="LOG_PATH" source="logging.path" defaultValue="./logs" />
|
||||
<property name="log.path" value="${LOG_PATH:-.}"/>
|
||||
<property name="MAX_FILE_SIZE" value="10MB"/>
|
||||
<property name="MAX_HISTORY" value="30"/>
|
||||
|
||||
<contextName>${CONTEXT_NAME}</contextName>
|
||||
|
||||
<!-- 彩色日志 -->
|
||||
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
|
||||
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />
|
||||
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" />
|
||||
|
||||
<!-- 控制台日志样式 -->
|
||||
<property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr([%15.15t]){faint} [%X{requestId}] %clr(%-40.40logger{39}){cyan} [%L] %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
|
||||
<!-- 文件日志样式 -->
|
||||
<property name="FILE_LOG_PATTERN" value="${FILE_LOG_PATTERN:-%d{${LOG_DATEFORMAT_PATTERN:-yyyy-MM-dd HH:mm:ss.SSS}} ${LOG_LEVEL_PATTERN:-%5p} [%t] [%X{requestId}] %-40.40logger{39} %L : %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
|
||||
|
||||
<!-- 禁用logback自身日志输出 -->
|
||||
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
|
||||
|
||||
<!-- 控制台 -->
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 运行日志文件 -->
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<encoder>
|
||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
<file>${log.path}/spring-boot-jjj.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/spring-boot-jjj-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||||
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
|
||||
<maxHistory>${MAX_HISTORY}</maxHistory>
|
||||
</rollingPolicy>
|
||||
</appender>
|
||||
|
||||
<!-- 错误日志文件 -->
|
||||
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<encoder>
|
||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
||||
</encoder>
|
||||
<file>${log.path}/spring-boot-jjj-error.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log.path}/spring-boot-jjj-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||||
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
|
||||
<maxHistory>${MAX_HISTORY}</maxHistory>
|
||||
</rollingPolicy>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<level>ERROR</level>
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 异步写日志 -->
|
||||
<appender name="ASYNC_FILE" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<discardingThreshold>0</discardingThreshold>
|
||||
<queueSize>1024</queueSize>
|
||||
<appender-ref ref ="FILE"/>
|
||||
</appender>
|
||||
<appender name="ASYNC_ERROR_FILE" class="ch.qos.logback.classic.AsyncAppender">
|
||||
<discardingThreshold>0</discardingThreshold>
|
||||
<queueSize>1024</queueSize>
|
||||
<appender-ref ref ="ERROR_FILE"/>
|
||||
</appender>
|
||||
|
||||
<!-- 不同环境的日志级别配置 -->
|
||||
<springProfile name="dev">
|
||||
<logger name="net.jjjerp" level="DEBUG"/>
|
||||
</springProfile>
|
||||
|
||||
<!-- 解决SpringBootAdmin错误日志问题 -->
|
||||
<logger name="org.apache.catalina.connector.CoyoteAdapter" level="OFF"/>
|
||||
|
||||
<root level="INFO">
|
||||
<appender-ref ref="CONSOLE" />
|
||||
<appender-ref ref="ASYNC_FILE" />
|
||||
<appender-ref ref="ASYNC_ERROR_FILE" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
@ -1,4 +0,0 @@
|
||||
#
|
||||
# 扩展mime-type
|
||||
# 参考:https://svn.apache.org/viewvc/httpd/httpd/trunk/docs/conf/mime.types?revision=1752884&view=co
|
||||
md=text/markdown
|
||||
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>404</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Not Found</h1>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>500</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>500</h1>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,10 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>404</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Error</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 9.5 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 8.6 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 24 KiB |