init
This commit is contained in:
70
target/classes/application.yml
Normal file
70
target/classes/application.yml
Normal file
@@ -0,0 +1,70 @@
|
||||
server:
|
||||
#启动端口
|
||||
port: 8002
|
||||
tomcat:
|
||||
#设置字符编码
|
||||
uri-encoding: UTF-8
|
||||
spring:
|
||||
application:
|
||||
#系统服务名
|
||||
name: EasyJavaTemplate
|
||||
#MySQL数据库相关配置信息
|
||||
datasource:
|
||||
url: jdbc:mysql://10.232.112.35:3306/rensijin-cchs?useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||
username: root #数据库账号
|
||||
password: -w9M627JZeYo5p^3lbH0mqDa #数据库密码
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
#Redis 缓存相关参数配置
|
||||
redis:
|
||||
host: 10.232.12.111
|
||||
port: 6379 #端口
|
||||
timeout: 5000 #连接超时 毫秒
|
||||
password: Redis11 #密码
|
||||
jedis:
|
||||
pool:
|
||||
maxActive: 30 #给定时间可以分配的最大连接数。 使用负值表示没有限制
|
||||
maxIdle: 30 #最大空闲连接数
|
||||
minIdle: 10 # 最小空间连接数
|
||||
maxWait: -1 #连接池最大等待时间 -1没有限制
|
||||
main:
|
||||
allow-bean-definition-overriding: true
|
||||
|
||||
servlet:
|
||||
multipart:
|
||||
#单个文件上传大小限制
|
||||
max-file-size: 30MB
|
||||
#单次上传文件总大小限制
|
||||
max-request-size: 100MB
|
||||
|
||||
#MyBatis-Plus相关配置
|
||||
mybatis-plus:
|
||||
#指定Mapper.xml路径,如果与Mapper路径相同的话,可省略
|
||||
mapper-locations: classpath:cn/wujiangbo/mapper/*Mapper.xml
|
||||
configuration:
|
||||
#开启驼峰大小写自动转换
|
||||
map-underscore-to-camel-case: true
|
||||
#开启控制台sql输出
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
easyjava:
|
||||
#版本号
|
||||
version: 2.0.5
|
||||
#系统类型标识
|
||||
systemType: 'xxx'
|
||||
#用户注册默认头像地址
|
||||
userDefaultAvatarPath: https://img2.baidu.com/it/u=1016407180,2828407920&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=800
|
||||
|
||||
#OSS相关配置
|
||||
file:
|
||||
#文件存储方案(1:文件本地;2:存阿里云OSS)
|
||||
filescheme: 1
|
||||
download:
|
||||
#文件下载用到的服务器IP地址
|
||||
ip: localhost
|
||||
alicloud:
|
||||
enable: true #是否开启OSS上传
|
||||
bucket-name: xxx #上传空间bucket
|
||||
access-key: xxx #你的key
|
||||
secret-key: xxx #你的秘钥
|
||||
endpoint: oss-cn-beijing.aliyuncs.com #上传端点
|
||||
0
target/classes/banner.txt
Normal file
0
target/classes/banner.txt
Normal file
BIN
target/classes/cn/wujiangbo/App.class
Normal file
BIN
target/classes/cn/wujiangbo/App.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/annotation/IgnoreAuth.class
Normal file
BIN
target/classes/cn/wujiangbo/annotation/IgnoreAuth.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/annotation/RateLimit.class
Normal file
BIN
target/classes/cn/wujiangbo/annotation/RateLimit.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/cors/CorsFilterConfig.class
Normal file
BIN
target/classes/cn/wujiangbo/config/cors/CorsFilterConfig.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/date/DateConfig$1.class
Normal file
BIN
target/classes/cn/wujiangbo/config/date/DateConfig$1.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/date/DateConfig$2.class
Normal file
BIN
target/classes/cn/wujiangbo/config/date/DateConfig$2.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/date/DateConfig.class
Normal file
BIN
target/classes/cn/wujiangbo/config/date/DateConfig.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/redis/RedisConfig.class
Normal file
BIN
target/classes/cn/wujiangbo/config/redis/RedisConfig.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/swagger/Swagger2.class
Normal file
BIN
target/classes/cn/wujiangbo/config/swagger/Swagger2.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/config/web/WebConfig.class
Normal file
BIN
target/classes/cn/wujiangbo/config/web/WebConfig.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/constants/ErrorCode.class
Normal file
BIN
target/classes/cn/wujiangbo/constants/ErrorCode.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/constants/SystemConstants.class
Normal file
BIN
target/classes/cn/wujiangbo/constants/SystemConstants.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/controller/LoginController.class
Normal file
BIN
target/classes/cn/wujiangbo/controller/LoginController.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/controller/RegisterController.class
Normal file
BIN
target/classes/cn/wujiangbo/controller/RegisterController.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/controller/TestController.class
Normal file
BIN
target/classes/cn/wujiangbo/controller/TestController.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/controller/base/BaseController.class
Normal file
BIN
target/classes/cn/wujiangbo/controller/base/BaseController.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/domain/app/AppSuggestion.class
Normal file
BIN
target/classes/cn/wujiangbo/domain/app/AppSuggestion.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/domain/app/AppSwiper.class
Normal file
BIN
target/classes/cn/wujiangbo/domain/app/AppSwiper.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/domain/app/AppUser.class
Normal file
BIN
target/classes/cn/wujiangbo/domain/app/AppUser.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/domain/base/BaseDomain.class
Normal file
BIN
target/classes/cn/wujiangbo/domain/base/BaseDomain.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/domain/system/SysUser.class
Normal file
BIN
target/classes/cn/wujiangbo/domain/system/SysUser.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/dto/AppSuggestionVO.class
Normal file
BIN
target/classes/cn/wujiangbo/dto/AppSuggestionVO.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/dto/UserToken.class
Normal file
BIN
target/classes/cn/wujiangbo/dto/UserToken.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/exception/MyException.class
Normal file
BIN
target/classes/cn/wujiangbo/exception/MyException.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/interceptor/LoginInterceptor.class
Normal file
BIN
target/classes/cn/wujiangbo/interceptor/LoginInterceptor.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/mapper/app/AppSuggestionMapper.class
Normal file
BIN
target/classes/cn/wujiangbo/mapper/app/AppSuggestionMapper.class
Normal file
Binary file not shown.
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.wujiangbo.mapper.app.AppSuggestionMapper">
|
||||
|
||||
<select id="selectMySqlPage" resultType="cn.wujiangbo.domain.app.AppSuggestion">
|
||||
select t1.*, t2.real_name as createUserName
|
||||
from app_suggestion t1
|
||||
left join sys_user t2 on t1.user_id = t2.id
|
||||
<where>
|
||||
<if test="query.keyword != null and query.keyword != '' ">
|
||||
and t1.complaint like concat('%', #{query.keyword}, '%')
|
||||
</if>
|
||||
</where>
|
||||
order by t1.id desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
BIN
target/classes/cn/wujiangbo/mapper/app/AppSwiperMapper.class
Normal file
BIN
target/classes/cn/wujiangbo/mapper/app/AppSwiperMapper.class
Normal file
Binary file not shown.
14
target/classes/cn/wujiangbo/mapper/app/AppSwiperMapper.xml
Normal file
14
target/classes/cn/wujiangbo/mapper/app/AppSwiperMapper.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.wujiangbo.mapper.app.AppSwiperMapper">
|
||||
|
||||
<select id="selectMySqlPage" resultType="cn.wujiangbo.domain.app.AppSwiper">
|
||||
select t1.*
|
||||
from app_swiper t1
|
||||
<where>
|
||||
<if test="query.keyword != null and query.keyword != '' ">
|
||||
and t1.img_desc like concat('%', #{query.keyword}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
BIN
target/classes/cn/wujiangbo/mapper/app/AppUserMapper.class
Normal file
BIN
target/classes/cn/wujiangbo/mapper/app/AppUserMapper.class
Normal file
Binary file not shown.
14
target/classes/cn/wujiangbo/mapper/app/AppUserMapper.xml
Normal file
14
target/classes/cn/wujiangbo/mapper/app/AppUserMapper.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.wujiangbo.mapper.app.AppUserMapper">
|
||||
|
||||
<select id="selectMySqlPage" resultType="cn.wujiangbo.domain.app.AppUser">
|
||||
select t1.*
|
||||
from app_user t1
|
||||
<where>
|
||||
<if test="query.keyword != null and query.keyword != '' ">
|
||||
and t1.login_name like concat('%', #{query.keyword}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
BIN
target/classes/cn/wujiangbo/mapper/system/SysUserMapper.class
Normal file
BIN
target/classes/cn/wujiangbo/mapper/system/SysUserMapper.class
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.wujiangbo.mapper.system.SysUserMapper">
|
||||
|
||||
</mapper>
|
||||
BIN
target/classes/cn/wujiangbo/query/app/AppSuggestionQuery.class
Normal file
BIN
target/classes/cn/wujiangbo/query/app/AppSuggestionQuery.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/query/app/AppSwiperQuery.class
Normal file
BIN
target/classes/cn/wujiangbo/query/app/AppSwiperQuery.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/query/app/AppUserQuery.class
Normal file
BIN
target/classes/cn/wujiangbo/query/app/AppUserQuery.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/query/base/BaseQuery.class
Normal file
BIN
target/classes/cn/wujiangbo/query/base/BaseQuery.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/query/system/SysUserQuery.class
Normal file
BIN
target/classes/cn/wujiangbo/query/system/SysUserQuery.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/result/JSONResult.class
Normal file
BIN
target/classes/cn/wujiangbo/result/JSONResult.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/result/PageList.class
Normal file
BIN
target/classes/cn/wujiangbo/result/PageList.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/service/app/AppUserService.class
Normal file
BIN
target/classes/cn/wujiangbo/service/app/AppUserService.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/service/system/FileService.class
Normal file
BIN
target/classes/cn/wujiangbo/service/system/FileService.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/service/system/SysUserService.class
Normal file
BIN
target/classes/cn/wujiangbo/service/system/SysUserService.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/cn/wujiangbo/util/DateUtils.class
Normal file
BIN
target/classes/cn/wujiangbo/util/DateUtils.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/util/IdUtils.class
Normal file
BIN
target/classes/cn/wujiangbo/util/IdUtils.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/util/MyTools.class
Normal file
BIN
target/classes/cn/wujiangbo/util/MyTools.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/util/RedisCache.class
Normal file
BIN
target/classes/cn/wujiangbo/util/RedisCache.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/vo/LoginSuccessVo.class
Normal file
BIN
target/classes/cn/wujiangbo/vo/LoginSuccessVo.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/vo/UploadFileVo.class
Normal file
BIN
target/classes/cn/wujiangbo/vo/UploadFileVo.class
Normal file
Binary file not shown.
BIN
target/classes/cn/wujiangbo/vo/UserTokenVo.class
Normal file
BIN
target/classes/cn/wujiangbo/vo/UserTokenVo.class
Normal file
Binary file not shown.
145
target/classes/logback-spring.xml
Normal file
145
target/classes/logback-spring.xml
Normal file
@@ -0,0 +1,145 @@
|
||||
<!-- 级别从高到低 OFF 、 FATAL 、 ERROR 、 WARN 、 INFO 、 DEBUG 、 TRACE 、 ALL -->
|
||||
<!-- 日志输出规则 根据当前ROOT 级别,日志输出时,级别高于root默认的级别时 会输出 -->
|
||||
<!-- 以下 每个配置的 filter 是过滤掉输出文件里面,会出现高级别文件,依然出现低级别的日志信息,通过filter 过滤只记录本级别的日志 -->
|
||||
<!-- scan 当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true。 -->
|
||||
<!-- scanPeriod 设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 -->
|
||||
<!-- debug 当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 -->
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
<!-- 动态日志级别 -->
|
||||
<jmxConfigurator />
|
||||
<!-- 定义日志文件 输出位置 -->
|
||||
<property name="log_dir" value="C:/LOGS/EasyJavaTemplate" />
|
||||
<!-- 日志最大的历史 30天 -->
|
||||
<property name="maxHistory" value="30" />
|
||||
<!-- 单个日志文件的最大大小 -->
|
||||
<property name="maxFileSize" value="5MB" />
|
||||
<!--格式化输出:%d表示日期,%t:表示线程名,%-5level:级别从左显示5个字符宽度,%c:类全路径,%msg:日志消息,%M:方法名,%L:日志所属行号,%n:换行符(Windows平台为"\r\n",Unix平台为"\n") -->
|
||||
<property name="FORMAT" value="%-5level %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c.%M:%L:%msg%n"/>
|
||||
|
||||
|
||||
<!-- ConsoleAppender 控制台输出日志 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>
|
||||
<!-- 设置日志输出格式 -->
|
||||
${FORMAT}
|
||||
</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- ERROR级别日志 -->
|
||||
<!-- 滚动记录文件,先将日志记录到指定文件,当符合某个条件时,将日志记录到其他文件 RollingFileAppender -->
|
||||
<appender name="ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<!-- 过滤器,只记录WARN级别的日志 -->
|
||||
<!-- 果日志级别等于配置级别,过滤器会根据onMath 和 onMismatch接收或拒绝日志。 -->
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 设置过滤级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 用于配置符合过滤条件的操作 -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 用于配置不符合过滤条件的操作 -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
<!-- 最常用的滚动策略,它根据时间来制定滚动策略.既负责滚动也负责出发滚动 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!--
|
||||
滚动时产生的文件的存放位置及文件名称 %d{yyyy-MM-dd}:按天进行日志滚动
|
||||
%i:当文件大小超过maxFileSize时,按照i进行文件滚动,i的值从0开始递增
|
||||
-->
|
||||
<fileNamePattern>
|
||||
${log_dir}/error/%d{yyyy-MM-dd}/error-%i.log
|
||||
</fileNamePattern>
|
||||
<!-- 可选节点,控制保留的归档文件的最大数量,超出数量就删除旧文件假设设置每个月滚动,且<maxHistory>是6, 则只保存最近6个月的文件,删除之前的旧文件。注意,删除旧文件是,那些为了归档而创建的目录也会被删除 -->
|
||||
<maxHistory>${maxHistory}</maxHistory>
|
||||
<!-- 日志文件的最大大小 -->
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>${maxFileSize}</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>
|
||||
<!-- 设置日志输出格式 -->
|
||||
${FORMAT}
|
||||
</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- WARN级别日志 appender -->
|
||||
<appender name="WARN" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<!-- 过滤器,只记录WARN级别的日志 -->
|
||||
<!-- 果日志级别等于配置级别,过滤器会根据onMath 和 onMismatch接收或拒绝日志。 -->
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 设置过滤级别 -->
|
||||
<level>WARN</level>
|
||||
<!-- 用于配置符合过滤条件的操作 -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 用于配置不符合过滤条件的操作 -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log_dir}/warn/%d{yyyy-MM-dd}/warn-%i.log</fileNamePattern>
|
||||
<maxHistory>${maxHistory}</maxHistory>
|
||||
<!-- 日志文件的最大大小 -->
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>${maxFileSize}</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${FORMAT}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- INFO级别日志 appender -->
|
||||
<appender name="INFO" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<level>INFO</level>
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log_dir}/info/%d{yyyy-MM-dd}/info-%i.log</fileNamePattern>
|
||||
<maxHistory>${maxHistory}</maxHistory>
|
||||
<!-- 日志文件的最大大小 -->
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>${maxFileSize}</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${FORMAT}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- DEBUG级别日志 appender -->
|
||||
<appender name="DEBUG" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<level>DEBUG</level>
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<fileNamePattern>${log_dir}/debug/%d{yyyy-MM-dd}/debug-%i.log</fileNamePattern>
|
||||
<maxHistory>${maxHistory}</maxHistory>
|
||||
<!-- 日志文件的最大大小 -->
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>${maxFileSize}</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${FORMAT}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- root级别 -->
|
||||
<root>
|
||||
<!-- 只有该级别日志及以上级别日志才会输出到指定渠道 -->
|
||||
<!-- 测试:debug。上生产环境时,需要改成info或error -->
|
||||
<level value="info" />
|
||||
<!-- 控制台输出渠道 -->
|
||||
<appender-ref ref="console" />
|
||||
<!-- 文件输出渠道 -->
|
||||
<appender-ref ref="ERROR" />
|
||||
<appender-ref ref="INFO" />
|
||||
<appender-ref ref="WARN" />
|
||||
<appender-ref ref="DEBUG" />
|
||||
</root>
|
||||
</configuration>
|
||||
8
target/classes/smart-doc.json
Normal file
8
target/classes/smart-doc.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
// 官网地址:https://smart-doc-group.github.io/#/?id=smart-doc
|
||||
"serverUrl": "http://localhost:8002", // 服务器地址,非必须
|
||||
"isStrict": false, //是否用严格模式,严格模式强制检查注释
|
||||
"allInOne": true, // 是否将文档合并到一个文件中,一般推荐为true
|
||||
"outPath": "./src/main/resources/SmartDoc", //文档的输出路径
|
||||
"projectName": "EasyJavaTemplate" //指定项目名称,用于显示在文档中
|
||||
}
|
||||
Reference in New Issue
Block a user