-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f23019a
commit 04a2f15
Showing
11 changed files
with
173 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
fly-core-base/src/main/resources/application-basepro.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
#配置redis: | ||
spring: | ||
redis: | ||
port: 6379 | ||
host: 39.108.189.121 | ||
password: | ||
timeout: 2000 | ||
jedis: | ||
pool: | ||
# 连接池最大连接数(使用负值表示没有限制) | ||
max-active: 8 | ||
# 连接池最大阻塞等待时间(使用负值表示没有限制) | ||
max-wait: -1 | ||
# 连接池中的最大空闲连接 | ||
max-idle: 8 | ||
# 连接池中的最小空闲连接 | ||
min-idle: 0 | ||
rabbitmq: | ||
addresses: 39.108.189.121 | ||
port: 5672 | ||
username: guest | ||
password: guest | ||
#开启发送确认 | ||
publisher-confirms: true | ||
#开启发送失败退回 | ||
publisher-returns: true | ||
#开启ack | ||
listener: | ||
direct: | ||
acknowledge-mode: manual | ||
retry: | ||
enabled: true | ||
max-attempts: 3 | ||
simple: | ||
acknowledge-mode: manual | ||
retry: | ||
enabled: true | ||
max-attempts: 3 | ||
datasource: | ||
type: com.alibaba.druid.pool.DruidDataSource | ||
oauth: | ||
driver-class-name: com.mysql.jdbc.Driver | ||
password: root | ||
username: root | ||
url: jdbc:mysql://39.108.189.121:3306/fly_oauth?useUnicode=true&characterEncoding=UTF-8&useAffectedRows=true | ||
order: | ||
driver-class-name: com.mysql.jdbc.Driver | ||
password: root | ||
username: root | ||
url: jdbc:mysql://39.108.189.121:3306/fly_order?useUnicode=true&characterEncoding=UTF-8&useAffectedRows=true | ||
goods: | ||
driver-class-name: com.mysql.jdbc.Driver | ||
password: root | ||
username: root | ||
url: jdbc:mysql://39.108.189.121:3306/fly_goods?useUnicode=true&characterEncoding=UTF-8&useAffectedRows=true | ||
# 下面为连接池的补充设置,应用到上面所有数据源中 | ||
# 初始化大小,最小,最大 | ||
initialSize: 1 | ||
minIdle: 3 | ||
maxActive: 20 | ||
# 配置获取连接等待超时的时间 | ||
maxWait: 60000 | ||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 | ||
timeBetweenEvictionRunsMillis: 60000 | ||
# 配置一个连接在池中最小生存的时间,单位是毫秒 | ||
minEvictableIdleTimeMillis: 30000 | ||
validationQuery: select 'x' | ||
testWhileIdle: true | ||
testOnBorrow: false | ||
testOnReturn: false | ||
# 打开PSCache,并且指定每个连接上PSCache的大小 | ||
poolPreparedStatements: true | ||
maxPoolPreparedStatementPerConnectionSize: 20 | ||
# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙 | ||
filters: stat,wall,slf4j | ||
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录 | ||
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 | ||
initialize: false | ||
|
||
|
||
mybatis-plus: | ||
# 如果是放在src/main/java目录下 classpath:/com/yourpackage/*/mapper/*Mapper.xml | ||
# 如果是放在resource目录 classpath:/mapper/*Mapper.xml | ||
mapper-locations: classpath*:/mapper/*.xml,/mapper/*/*.xml | ||
#实体扫描,多个package用逗号或者分号分隔 | ||
typeAliasesPackage: com.fly.**.domain | ||
global-config: | ||
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; | ||
id-type: 0 | ||
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" | ||
field-strategy: 1 | ||
#驼峰下划线转换 | ||
db-column-underline: true | ||
#刷新mapper 调试神器 | ||
#refresh-mapper: true | ||
#数据库大写下划线转换 | ||
#capital-mode: true | ||
# Sequence序列接口实现类配置 | ||
#key-generator: com.baomidou.mybatisplus.incrementer.OracleKeyGenerator | ||
#逻辑删除配置(下面3个配置) | ||
logic-delete-value: 1 | ||
logic-not-delete-value: 0 | ||
#sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector | ||
#自定义填充策略接口实现 | ||
#meta-object-handler: com.baomidou.springboot.MyMetaObjectHandler | ||
configuration: | ||
#配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId) | ||
map-underscore-to-camel-case: true | ||
cache-enabled: false | ||
#配置JdbcTypeForNull, oracle数据库必须配置 | ||
jdbc-type-for-null: 'null' | ||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
spring: | ||
profiles: | ||
active: pro,basedev | ||
active: dev,basedev | ||
application: | ||
name: api-service | ||
jackson: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
spring: | ||
profiles: | ||
active: basedev,pro | ||
active: basedev,dev | ||
application: | ||
name: oauth | ||
output: | ||
ansi: | ||
enabled: always | ||
server: | ||
port: 8200 | ||
management: | ||
security: | ||
enabled: false | ||
|
||
|
||
|