mirror of
https://gitee.com/ZhongBangKeJi/crmeb_java.git
synced 2026-04-26 20:49:37 +08:00
后端代码提交
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
# CRMEB 相关配置
|
||||
crmeb:
|
||||
version: CRMEB-JAVA-KY-v1.3.4 # 当前代码版本
|
||||
version: CRMEB-JAVA-KY-v1.4 # 当前代码版本
|
||||
domain: #配合swagger使用 # 待部署域名
|
||||
wechat-api-url: #请求微信接口中专服务器
|
||||
wechat-js-api-debug: false #微信js api系列是否开启调试模式
|
||||
wechat-js-api-beta: true #微信js api是否是beta版本
|
||||
asyncConfig: false #是否同步config表数据到redis
|
||||
asyncConfig: true #是否同步config表数据到redis
|
||||
asyncWeChatProgramTempList: false #是否同步小程序公共模板库
|
||||
imagePath: /www/wwwroot/your Crmeb-admin.jar Path/ # 服务器图片路径配置 斜杠结尾
|
||||
imagePath: /你的站点绝对路径 建议jar包位置/ # 服务器图片路径配置 斜杠结尾
|
||||
captchaOn: false # 是否开启行为验证码
|
||||
demoSite: true # 是否演示站点 所有手机号码都会掩码
|
||||
|
||||
server:
|
||||
port: 20008
|
||||
@@ -30,8 +32,8 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/crmeb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: crmeb
|
||||
url: jdbc:mysql://127.0.0.1:3306/crmeb_java_beta?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: crmeb_java_beta
|
||||
password: 111111
|
||||
redis:
|
||||
host: 127.0.0.1 #地址
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
# CRMEB 相关配置
|
||||
crmeb:
|
||||
version: CRMEB-JAVA-KY-v1.3.4 # 当前代码版本
|
||||
version: CRMEB-JAVA-KY-v1.4 # 当前代码版本
|
||||
domain: #配合swagger使用 # 待部署域名
|
||||
wechat-api-url: #请求微信接口中专服务器
|
||||
wechat-js-api-debug: false #微信js api系列是否开启调试模式
|
||||
wechat-js-api-beta: true #微信js api是否是beta版本
|
||||
asyncConfig: false #是否同步config表数据到redis
|
||||
asyncConfig: true #是否同步config表数据到redis
|
||||
asyncWeChatProgramTempList: false #是否同步小程序公共模板库
|
||||
imagePath: /www/wwwroot/Crmeb-admin.jar path/ # 服务器图片路径配置 斜杠结尾
|
||||
imagePath: /JAVA_PROJECT/OPEN/dev/admin/ # 服务器图片路径配置 斜杠结尾
|
||||
captchaOn: false # 是否开启行为验证码
|
||||
demoSite: true # 是否演示站点 所有手机号码都会掩码
|
||||
|
||||
server:
|
||||
port: 20010
|
||||
port: 20500
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
@@ -24,15 +26,15 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/crmeb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: crmeb
|
||||
url: jdbc:mysql://127.0.0.1:3306/single_open?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: single_open
|
||||
password: 111111
|
||||
redis:
|
||||
host: 127.0.0.1 #地址
|
||||
port: 6379 #端口
|
||||
password: 111111
|
||||
timeout: 10000 # 连接超时时间(毫秒)
|
||||
database: 10 #默认数据库
|
||||
database: 6 #默认数据库
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
# CRMEB 相关配置
|
||||
crmeb:
|
||||
version: CRMEB-JAVA-KY-v1.3.4 # 当前代码版本
|
||||
version: CRMEB-JAVA-KY-v1.4 # 当前代码版本
|
||||
domain: #配合swagger使用 # 待部署域名
|
||||
wechat-api-url: #请求微信接口中专服务器
|
||||
wechat-js-api-debug: false #微信js api系列是否开启调试模式
|
||||
wechat-js-api-beta: true #微信js api是否是beta版本
|
||||
asyncConfig: false #是否同步config表数据到redis
|
||||
asyncConfig: true #是否同步config表数据到redis
|
||||
asyncWeChatProgramTempList: false #是否同步小程序公共模板库
|
||||
imagePath: /www/wwwroot/your Crmeb-admin.jar Path/ # 服务器图片路径配置 斜杠结尾
|
||||
imagePath: /JAVA_PROJECT/SINGLE/demo/admin/ # 服务器图片路径配置 斜杠结尾
|
||||
captchaOn: false # 是否开启行为验证码
|
||||
demoSite: true # 是否演示站点 所有手机号码都会掩码
|
||||
|
||||
server:
|
||||
port: 20000
|
||||
port: 20400
|
||||
|
||||
spring:
|
||||
profiles:
|
||||
@@ -24,15 +26,15 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/crmeb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: crmeb
|
||||
password: 1111111
|
||||
url: jdbc:mysql://127.0.0.1:3306/java_demo?characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: java_demo
|
||||
password: 111111
|
||||
redis:
|
||||
host: 127.0.0.1 #地址
|
||||
port: 6379 #端口
|
||||
password: 111111
|
||||
timeout: 10000 # 连接超时时间(毫秒)
|
||||
database: 15 #默认数据库
|
||||
database: 4 #默认数据库
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||
@@ -53,7 +55,7 @@ logging:
|
||||
|
||||
# mybatis 配置
|
||||
mybatis-plus:
|
||||
# 配置slq打印日志
|
||||
# 配置sql打印日志
|
||||
configuration:
|
||||
log-impl:
|
||||
|
||||
@@ -61,6 +63,6 @@ mybatis-plus:
|
||||
swagger:
|
||||
basic:
|
||||
enable: true #是否开启界面
|
||||
check: true #是否打开验证
|
||||
username: #访问swagger的账号
|
||||
password: #访问swagger的密码
|
||||
check: false #是否打开验证
|
||||
username: crmeb #访问swagger的账号
|
||||
password: crmeb.com #访问swagger的密码
|
||||
|
||||
@@ -1,14 +1,29 @@
|
||||
# CRMEB 相关配置
|
||||
crmeb:
|
||||
version: CRMEB-JAVA-KY-v1.3.4 # 当前代码版本
|
||||
version: CRMEB-JAVA-KY-v1.4 # 当前代码版本
|
||||
domain: #配合swagger使用 # 待部署域名
|
||||
wechat-api-url: #请求微信接口中专服务器
|
||||
wechat-js-api-debug: false #微信js api系列是否开启调试模式
|
||||
wechat-js-api-beta: true #微信js api是否是beta版本
|
||||
asyncConfig: false #是否同步config表数据到redis
|
||||
asyncConfig: true #是否同步config表数据到redis
|
||||
asyncWeChatProgramTempList: false #是否同步小程序公共模板库
|
||||
imagePath: /当前项目更根目录的素材文件(绝对路径)/crmebimage/ # 服务器图片路径配置 斜杠结尾
|
||||
database: mysql
|
||||
imagePath: /Users/23730/Desktop/projectr/single_java/ # 服务器图片路径配置 斜杠结尾
|
||||
demoSite: true # 是否演示站点 所有手机号码都会掩码
|
||||
activityStyleCachedTime: 10 #活动边框缓存周期 秒为单位,生产环境适当5-10分钟即可
|
||||
ignored: #安全路径白名单
|
||||
- swagger-ui/
|
||||
- swagger-resources/**
|
||||
- /**/v2/api-docs
|
||||
- /**/*.html
|
||||
- /**/*.js
|
||||
- /**/*.css
|
||||
- /**/*.png
|
||||
- /**/*.map
|
||||
- /favicon.ico
|
||||
- /actuator/**
|
||||
- /druid/**
|
||||
- api/admin/pagediy/info
|
||||
- api/public/**
|
||||
|
||||
# 配置端口
|
||||
server:
|
||||
@@ -23,6 +38,7 @@ server:
|
||||
spring:
|
||||
profiles:
|
||||
# 配置的环境
|
||||
# active: #spring.profiles.active#
|
||||
active:
|
||||
servlet:
|
||||
multipart:
|
||||
@@ -38,16 +54,41 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/crmeb?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimeZone=GMT+8
|
||||
username: crmeb
|
||||
url: jdbc:mysql://127.0.0.1:3306/single_open?serverTimezone=UTC
|
||||
username: single_open
|
||||
password: 111111
|
||||
# quartz
|
||||
quartz:
|
||||
properties:
|
||||
org:
|
||||
quartz:
|
||||
scheduler:
|
||||
instanceName: quartzScheduler
|
||||
# instanceName: clusteredScheduler
|
||||
instanceId: AUTO
|
||||
jobStore:
|
||||
class: org.quartz.impl.jdbcjobstore.JobStoreTX
|
||||
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||
tablePrefix: QRTZ_
|
||||
isClustered: false
|
||||
clusterCheckinInterval: 10000
|
||||
useProperties: false
|
||||
# dataSource: crmeb_java_beta
|
||||
threadPool:
|
||||
class: org.quartz.simpl.SimpleThreadPool
|
||||
threadCount: 10
|
||||
threadPriority: 5
|
||||
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||
#数据库方式
|
||||
job-store-type: JDBC
|
||||
|
||||
|
||||
redis:
|
||||
host: 127.0.0.1 #地址
|
||||
port: 6379 #端口
|
||||
password: 111111
|
||||
timeout: 30000 # 连接超时时间(毫秒)
|
||||
database: 15 #默认数据库
|
||||
database: 6 #默认数据库
|
||||
jedis:
|
||||
pool:
|
||||
max-active: 200 # 连接池最大连接数(使用负值表示没有限制)
|
||||
@@ -55,7 +96,8 @@ spring:
|
||||
max-idle: 10 # 连接池中的最大空闲连接
|
||||
min-idle: 0 # 连接池中的最小空闲连接
|
||||
time-between-eviction-runs: -1 #逐出扫描的时间间隔(毫秒) 如果为负数,则不运行逐出线程, 默认-1
|
||||
|
||||
second:
|
||||
database: 14 # 微信accessToken存储库
|
||||
|
||||
debug: true
|
||||
logging:
|
||||
@@ -88,3 +130,44 @@ swagger:
|
||||
check: false #是否打开验证
|
||||
username: #访问swagger的账号
|
||||
password: #访问swagger的密码
|
||||
|
||||
# 行为验证码
|
||||
aj:
|
||||
captcha:
|
||||
type: default # 验证码类型
|
||||
water-mark: CRMEB Java # 水印
|
||||
slip-offset: 15 # 校验滑动拼图允许误差偏移量(默认5像素)
|
||||
aes-status: true # aes加密坐标开启或者禁用(true|false)
|
||||
interference-options: 2 # 滑动干扰项(0/1/2)
|
||||
font-style: 1 # 点选字体样式 默认Font.BOLD
|
||||
font-size: 25 # 点选字体字体大小
|
||||
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
|
||||
req-get-lock-limit: 5 # 验证失败5次,get接口锁定
|
||||
req-get-lock-seconds: 360 # 验证失败后,锁定时间间隔,s
|
||||
req-get-minute-limit: 30 # get接口一分钟内请求数限制
|
||||
req-check-minute-limit: 60 # check接口一分钟内请求数限制
|
||||
req-verify-minute-limit: 60 # verify接口一分钟内请求数限制
|
||||
|
||||
# 滑动验证,底图路径,不配置将使用默认图片
|
||||
# 支持全路径
|
||||
# 支持项目路径,以classpath:开头,取resource目录下路径,例:classpath:images/jigsaw
|
||||
jigsaw: classpath:images/jigsaw
|
||||
#滑动验证,底图路径,不配置将使用默认图片
|
||||
##支持全路径
|
||||
# 支持项目路径,以classpath:开头,取resource目录下路径,例:classpath:images/pic-click
|
||||
pic-click: classpath:images/pic-click
|
||||
# 对于分布式部署的应用,我们建议应用自己实现CaptchaCacheService,比如用Redis或者memcache,
|
||||
# 参考CaptchaCacheServiceRedisImpl.java
|
||||
# 如果应用是单点的,也没有使用redis,那默认使用内存。
|
||||
# 内存缓存只适合单节点部署的应用,否则验证码生产与验证在节点之间信息不同步,导致失败。
|
||||
# !!! 注意啦,如果应用有使用spring-boot-starter-data-redis,
|
||||
# 请打开CaptchaCacheServiceRedisImpl.java注释。
|
||||
# redis -----> SPI: 在resources目录新建META-INF.services文件夹(两层),参考当前服务resources。
|
||||
# 缓存local/redis...
|
||||
cache-type: redis
|
||||
# local缓存的阈值,达到这个值,清除缓存
|
||||
cache-number: 1000
|
||||
# local定时清除过期缓存(单位秒),设置为0代表不执行
|
||||
timing-clear: 3600
|
||||
|
||||
history-data-clear-enable: false
|
||||
@@ -1,65 +0,0 @@
|
||||
#\u4EE3\u7801\u751F\u6210\u5668\uFF0C\u914D\u7F6E\u4FE1\u606F
|
||||
|
||||
mainPath=com.zbkj
|
||||
#\u5305\u540D
|
||||
package=com.zbkj.modules
|
||||
moduleName=autogencode
|
||||
#\u4F5C\u8005
|
||||
author=\u5927\u7CBD\u5B50
|
||||
#Email
|
||||
email=stivepeim@outlook.com
|
||||
#\u8868\u524D\u7F00(\u7C7B\u540D\u4E0D\u4F1A\u5305\u542B\u8868\u524D\u7F00)
|
||||
tablePrefix=tb_
|
||||
|
||||
#\u7C7B\u578B\u8F6C\u6362\uFF0C\u914D\u7F6E\u4FE1\u606F
|
||||
tinyint=Integer
|
||||
smallint=Integer
|
||||
mediumint=Integer
|
||||
int=Integer
|
||||
integer=Integer
|
||||
bigint=Long
|
||||
float=Float
|
||||
double=Double
|
||||
decimal=BigDecimal
|
||||
bit=Boolean
|
||||
|
||||
char=String
|
||||
varchar=String
|
||||
tinytext=String
|
||||
text=String
|
||||
mediumtext=String
|
||||
longtext=String
|
||||
|
||||
|
||||
date=Date
|
||||
datetime=Date
|
||||
timestamp=Date
|
||||
|
||||
NUMBER=Integer
|
||||
INT=Integer
|
||||
INTEGER=Integer
|
||||
BINARY_INTEGER=Integer
|
||||
LONG=String
|
||||
FLOAT=Float
|
||||
BINARY_FLOAT=Float
|
||||
DOUBLE=Double
|
||||
BINARY_DOUBLE=Double
|
||||
DECIMAL=BigDecimal
|
||||
CHAR=String
|
||||
VARCHAR=String
|
||||
VARCHAR2=String
|
||||
NVARCHAR=String
|
||||
NVARCHAR2=String
|
||||
CLOB=String
|
||||
BLOB=String
|
||||
DATE=Date
|
||||
DATETIME=Date
|
||||
TIMESTAMP=Date
|
||||
TIMESTAMP(6)=Date
|
||||
|
||||
int8=Long
|
||||
int4=Integer
|
||||
int2=Integer
|
||||
numeric=BigDecimal
|
||||
|
||||
nvarchar=String
|
||||
@@ -2,7 +2,7 @@
|
||||
<configuration debug="false">
|
||||
<!-- 根据需要自行配置 -->
|
||||
<property name="APP_NAME" value="Crmeb"/>
|
||||
<property name="log.path" value="./crmeb_log"></property>
|
||||
<property name="log.path" value="crmeb_admin_log"></property>
|
||||
|
||||
<!--"@timestamp": "2019-06-27T09:59:41.897+08:00",-->
|
||||
<!--"@version": "1",-->
|
||||
@@ -213,21 +213,12 @@
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="LOGSTASH" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<encoder charset="UTF-8" class="net.logstash.logback.encoder.LogstashEncoder"/>
|
||||
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<fileNamePattern>${LOG_HOME}/${APP_NAME}-%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
</rollingPolicy>
|
||||
|
||||
</appender>
|
||||
<!-- 日志输出级别 -->
|
||||
<root level="INFO">
|
||||
<appender-ref ref="STDOUT"/>
|
||||
<appender-ref ref="DEBUG_FILE" />
|
||||
<appender-ref ref="INFO_FILE" />
|
||||
<appender-ref ref="WARN_FILE" />
|
||||
<!-- <appender-ref ref="INFO_FILE" />-->
|
||||
<!-- <appender-ref ref="WARN_FILE" />-->
|
||||
<appender-ref ref="ERROR_FILE" />
|
||||
<appender-ref ref="LOGSTASH"/>
|
||||
</root>
|
||||
</configuration>
|
||||
|
||||
Reference in New Issue
Block a user