fix: 调整项目路径
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"properties": [
|
||||
{
|
||||
"name": "mjkf-xinke.config.global.front-url",
|
||||
"type": "java.lang.String",
|
||||
"description": "前端地址."
|
||||
},
|
||||
{
|
||||
"name": "mjkf-xinke.config.global.backend-url",
|
||||
"type": "java.lang.String",
|
||||
"description": "后端地址."
|
||||
},
|
||||
{
|
||||
"name": "mjkf-xinke.config.ten.enabled",
|
||||
"type": "java.lang.String",
|
||||
"description": "是否开启多租户."
|
||||
},
|
||||
{
|
||||
"name": "mjkf-xinke.config.ten.ignore-table-names",
|
||||
"type": "java.lang.String",
|
||||
"description": "租户id隔离的租户模式下,需要忽略拼接租户id字段的表名称,逗号分割."
|
||||
},
|
||||
{
|
||||
"name": "mjkf-xinke.config.ten.ten-id-column-name",
|
||||
"type": "java.lang.String",
|
||||
"description": "租户id隔离的租户模式下,租户字段名称(数据表需具备对应字段名称)."
|
||||
},
|
||||
{
|
||||
"name": "mjkf-xinke.config.ten.default-ten-id",
|
||||
"type": "java.lang.String",
|
||||
"description": "租户id隔离的租户模式下,默认租户ID."
|
||||
}
|
||||
] }
|
1529
src/main/resources/_sql/init/mysql/mjkf-xinke-sql.sql
Normal file
1529
src/main/resources/_sql/init/mysql/mjkf-xinke-sql.sql
Normal file
File diff suppressed because one or more lines are too long
129
src/main/resources/application.yml
Normal file
129
src/main/resources/application.yml
Normal file
@@ -0,0 +1,129 @@
|
||||
camunda:
|
||||
bpm:
|
||||
auto-deployment-enabled: false
|
||||
database:
|
||||
schema-update: true
|
||||
eventing:
|
||||
history: false
|
||||
job-execution:
|
||||
enabled: false
|
||||
metrics:
|
||||
enabled: false
|
||||
easy-trans:
|
||||
is-enable-global: true
|
||||
is-enable-redis: true
|
||||
is-enable-tile: true
|
||||
knife4j:
|
||||
basic:
|
||||
enable: true
|
||||
password: 123456
|
||||
username: admin
|
||||
enable: true
|
||||
production: false
|
||||
setting:
|
||||
enableFooter: false
|
||||
enableFooterCustom: true
|
||||
enableOpenApi: false
|
||||
enableSwaggerModels: false
|
||||
footerCustomContent: Apache License 2.0
|
||||
mybatis-plus:
|
||||
configuration:
|
||||
jdbc-type-for-null: 'null'
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
global-config:
|
||||
banner: false
|
||||
db-config:
|
||||
id-type: ASSIGN_ID
|
||||
logic-delete-field: DELETE_FLAG
|
||||
logic-delete-value: DELETED
|
||||
logic-not-delete-value: NOT_DELETE
|
||||
enable-sql-runner: true
|
||||
mapper-locations: classpath*:mjkf/xinke/**/mapping/*.xml,com/bstek/**/mapping/*.xml
|
||||
type-handlers-package: mjkf.xinke.common.handler
|
||||
sa-token:
|
||||
activity-timeout: -1
|
||||
alone-redis:
|
||||
database: 2
|
||||
host: ${spring.redis.host}
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: ${spring.redis.lettuce.pool.max-active}
|
||||
max-idle: ${spring.redis.lettuce.pool.max-idle}
|
||||
max-wait: ${spring.redis.lettuce.pool.max-wait}
|
||||
min-idle: ${spring.redis.lettuce.pool.min-idle}
|
||||
password: ${spring.redis.password}
|
||||
port: ${spring.redis.port}
|
||||
timeout: ${spring.redis.timeout}
|
||||
is-concurrent: true
|
||||
is-log: false
|
||||
is-print: false
|
||||
is-share: false
|
||||
max-login-count: -1
|
||||
timeout: 2592000
|
||||
token-name: token
|
||||
token-style: random-32
|
||||
server:
|
||||
port: 9882
|
||||
mjkf-xinke:
|
||||
config:
|
||||
common:
|
||||
backend-url: http://localhost:9882
|
||||
front-url: http://localhost:9881
|
||||
ten:
|
||||
default-ten-id: -1
|
||||
enabled: true
|
||||
ignore-table-names: ''
|
||||
ten-id-column-name: TENANT_ID
|
||||
spring:
|
||||
datasource:
|
||||
druid:
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
login-password: 123456
|
||||
login-username: admin
|
||||
dynamic:
|
||||
datasource:
|
||||
master:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
password: Xxs123456
|
||||
url: jdbc:mysql://192.168.1.3:4306/material_manage?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true
|
||||
username: root
|
||||
druid:
|
||||
break-after-acquire-failure: false
|
||||
filters: stat
|
||||
initial-size: 5
|
||||
max-active: 20
|
||||
max-pool-prepared-statement-per-connection-size: 20
|
||||
max-wait: 60000
|
||||
min-evictable-idle-time-millis: 300000
|
||||
min-idle: 5
|
||||
pool-prepared-statements: true
|
||||
test-on-borrow: false
|
||||
test-on-return: false
|
||||
test-while-idle: true
|
||||
time-between-eviction-runs-millis: 6000
|
||||
validation-query-timeout: 2000
|
||||
public-key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMWiTVtdXFVrgFHDDKELZM0SywkWY3KjugN90eY5Sogon1j8Y0ClPF7nx3FuE7pAeBKiv7ChIS0vvx/59WUpKmUCAwEAAQ==
|
||||
strict: true
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
locale: zh_CN
|
||||
time-zone: GMT+8
|
||||
profiles:
|
||||
active: local
|
||||
redis:
|
||||
database: 1
|
||||
host: 127.0.0.1
|
||||
lettuce:
|
||||
pool:
|
||||
max-active: 200
|
||||
max-idle: 10
|
||||
max-wait: -1ms
|
||||
min-idle: 0
|
||||
password: ''
|
||||
port: 6379
|
||||
timeout: 10s
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
max-request-size: 100MB
|
118
src/main/resources/logback-spring.xml
Normal file
118
src/main/resources/logback-spring.xml
Normal file
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<!--日志格式应用spring boot默认的格式,也可以自己更改-->
|
||||
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>
|
||||
|
||||
<!--定义日志存放的位置,默认存放在项目启动的相对路径的目录-->
|
||||
<springProperty scope="context" name="LOG_PATH" source="log.path" defaultValue="app-log"/>
|
||||
|
||||
<!-- ****************************************************************************************** -->
|
||||
<!-- ****************************** 本地开发只在控制台打印日志 ************************************ -->
|
||||
<!-- ****************************************************************************************** -->
|
||||
<springProfile name="local">
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
<charset>utf-8</charset>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!--默认所有的包以info-->
|
||||
<root level="info">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</root>
|
||||
|
||||
<!--各个服务的包在本地执行的时候,打开debug模式-->
|
||||
<logger name="mjkf.xinke" level="info" additivity="false">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
</logger>
|
||||
</springProfile>
|
||||
|
||||
<!-- ********************************************************************************************** -->
|
||||
<!-- **** 放到服务器上不管在什么环境都只在文件记录日志,控制台(catalina.out)打印logback捕获不到的日志 **** -->
|
||||
<!-- ********************************************************************************************** -->
|
||||
<springProfile name="!local">
|
||||
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
|
||||
<charset>utf-8</charset>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 日志记录器,日期滚动记录 -->
|
||||
<appender name="FILE_ERROR" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
|
||||
<!-- 正在记录的日志文件的路径及文件名 -->
|
||||
<file>${LOG_PATH}/log_error.log</file>
|
||||
|
||||
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
|
||||
<!-- 归档的日志文件的路径,%d{yyyy-MM-dd}指定日期格式,%i指定索引 -->
|
||||
<fileNamePattern>${LOG_PATH}/error/log-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||||
|
||||
<!-- 除按日志记录之外,还配置了日志文件不能超过2M,若超过2M,日志文件会以索引0开始,
|
||||
命名日志文件,例如log-error-2013-12-21.0.log -->
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>10MB</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
|
||||
<!-- 追加方式记录日志 -->
|
||||
<append>true</append>
|
||||
|
||||
<!-- 日志文件的格式 -->
|
||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
||||
<charset>utf-8</charset>
|
||||
</encoder>
|
||||
|
||||
<!-- 此日志文件只记录error级别的 -->
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<level>error</level>
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 日志记录器,日期滚动记录 -->
|
||||
<appender name="FILE_ALL" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
|
||||
<!-- 正在记录的日志文件的路径及文件名 -->
|
||||
<file>${LOG_PATH}/log_total.log</file>
|
||||
|
||||
<!-- 日志记录器的滚动策略,按日期,按大小记录 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
|
||||
<!-- 归档的日志文件的路径,%d{yyyy-MM-dd}指定日期格式,%i指定索引 -->
|
||||
<fileNamePattern>${LOG_PATH}/total/log-total-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
||||
|
||||
<!-- 除按日志记录之外,还配置了日志文件不能超过2M,若超过2M,日志文件会以索引0开始,
|
||||
命名日志文件,例如log-error-2013-12-21.0.log -->
|
||||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
||||
<maxFileSize>10MB</maxFileSize>
|
||||
</timeBasedFileNamingAndTriggeringPolicy>
|
||||
</rollingPolicy>
|
||||
|
||||
<!-- 追加方式记录日志 -->
|
||||
<append>true</append>
|
||||
|
||||
<!-- 日志文件的格式 -->
|
||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||
<pattern>${FILE_LOG_PATTERN}</pattern>
|
||||
<charset>utf-8</charset>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!--记录到文件时,记录两类一类是error日志,一个是所有日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
<appender-ref ref="FILE_ERROR"/>
|
||||
<appender-ref ref="FILE_ALL"/>
|
||||
</root>
|
||||
|
||||
</springProfile>
|
||||
|
||||
</configuration>
|
Reference in New Issue
Block a user