Commit a16a5361 authored by 高宇's avatar 高宇

初始化项目

parent b18957d0
package org.rcisoft; package org.rcisoft;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.rcisoft.core.doc.anno.CyDocAnno;
import org.rcisoft.core.doc.enums.CyDocEnum;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.context.annotation.EnableAspectJAutoProxy;
...@@ -9,12 +12,13 @@ import org.springframework.security.config.annotation.method.configuration.Enabl ...@@ -9,12 +12,13 @@ import org.springframework.security.config.annotation.method.configuration.Enabl
import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication @SpringBootApplication(scanBasePackages = {"org.rcisoft"})
@EnableTransactionManagement
@EnableAspectJAutoProxy @EnableAspectJAutoProxy
@EnableScheduling @EnableScheduling
@EnableGlobalMethodSecurity(prePostEnabled=true) @EnableGlobalMethodSecurity(prePostEnabled=true)
@MapperScan(basePackages = {"org.rcisoft.**.dao","org.activiti.dao"})//扫描dao 不需要@repository @MapperScan(basePackages = {"org.rcisoft.**.dao","org.activiti.dao"})//扫描dao 不需要@repository
@CyDocAnno(CyDocEnum.DEMO)
@EnableEncryptableProperties
public class WmsApiApplication { public class WmsApiApplication {
public static void main(String[] args) { public static void main(String[] args) {
......
...@@ -19,11 +19,12 @@ cy_mq: ...@@ -19,11 +19,12 @@ cy_mq:
# password: ENC(v2dv818F45rL4ZCZQaEgV/+ruvGFPx65AMPV52sk56N7ZuJCMTo9lUGT9j4aDccy7FND4QHN1gyDZqG3cY8w8Q==) # password: ENC(v2dv818F45rL4ZCZQaEgV/+ruvGFPx65AMPV52sk56N7ZuJCMTo9lUGT9j4aDccy7FND4QHN1gyDZqG3cY8w8Q==)
# db: exam # db: exam
cy_db: cy_db:
ip: 192.144.239.97 ip: 49.232.167.247
port: 20220 port: 20022
username: root username: root
password: rootnj23nj23jk@2 password: cy
db: wms_db db: wms_db
#cy_db: #cy_db:
...@@ -66,14 +67,14 @@ cy: ...@@ -66,14 +67,14 @@ cy:
realSend: false realSend: false
model: yuntongxun model: yuntongxun
# 1 "", 2 math, 3 char, 4 block,5 word # 1 "", 2 math, 3 char, 4 block,5 word
captchaType: 3 captchaType: 1
# 是否开启短信登录拦截 # 是否开启短信登录拦截
secure: false secure: false
login: login:
# 是否开启登录日志 # 是否开启登录日志
log: true log: true
# 1 "", 2 math, 3 char, 4 block,5 word # 1 "", 2 math, 3 char, 4 block,5 word
captcha: 3 captcha: 1
# 是否开启登录拦截 # 是否开启登录拦截
secure: false secure: false
security: security:
......
...@@ -32,11 +32,11 @@ cy: ...@@ -32,11 +32,11 @@ cy:
debug: false debug: false
rabbitMq: false rabbitMq: false
quartz: false quartz: false
redis: false redis: true
mongodb: false mongodb: false
dbChange: false dbChange: true
redisCluster: false redisCluster: false
entityParam: false entityParam: true
# md5 # md5
decryptParam: false decryptParam: false
decryptKey: cyKey decryptKey: cyKey
...@@ -64,7 +64,7 @@ cy: ...@@ -64,7 +64,7 @@ cy:
enable: true enable: true
author: cy author: cy
dbType: mysql dbType: mysql
database: wms_db database: rcisoft
basePackage: org.rcisoft.sys basePackage: org.rcisoft.sys
rejectRepeatSubmit: rejectRepeatSubmit:
enable: false enable: false
......
...@@ -10,10 +10,6 @@ ...@@ -10,10 +10,6 @@
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符--> <!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<!--<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>--> <!--<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>-->
</layout> </layout>
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>-->
</appender> </appender>
<appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="fileInfoLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
...@@ -120,7 +116,25 @@ ...@@ -120,7 +116,25 @@
<!--<appender-ref ref="logStash" />--> <!--<appender-ref ref="logStash" />-->
</root> </root>
</springProfile> </springProfile>
<springProfile name="oracle">
<root level="debug">
<appender-ref ref="consoleLog" />
<appender-ref ref="fileInfoLog" />
<appender-ref ref="fileErrorLog" />
<!--<appender-ref ref="logStash" />-->
</root>
</springProfile>
<springProfile name="kube">
<root level="info">
<appender-ref ref="consoleLog" />
<appender-ref ref="fileInfoLog" />
<appender-ref ref="fileErrorLog" />
<!--<appender-ref ref="logStash" />-->
</root>
</springProfile>
<springProfile name="test"> <springProfile name="test">
<root level="debug"> <root level="debug">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment