加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
web-dev.yml 3.46 KB
一键复制 编辑 原始数据 按行查看 历史
或许也无所谓 提交于 2018-12-06 11:19 . 更新 web-dev.yml
#app
server:
port: 8603
#Data image url
data:
image:
url: http://localhost:8600/
file:
upload:
path: D:/mogu_blog/data/
#博客相关配置
BLOG:
HOT_COUNT: 5 #热门博客数量
NEW_COUNT: 15 #最新博客数据
FIRST_COUNT: 5 #一级推荐
SECOND_COUNT: 2 #二级推荐
THIRD_COUNT: 3 #三级推荐
FOURTH_COUNT: 5 #四级推荐
#spring
spring:
jmx:
default-domain: mogu_web
thymeleaf:
cache: true #关闭缓存
application:
name: mogu-web
devtools:
restart:
enabled: true #启动热部署
additional-paths:
- src/main/java #设置重启的目录,添加哪个目录文件需要restart
# DATABASE CONFIG
datasource:
username: root
password: root
url: jdbc:mysql://localhost:3380/mogu_blog?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
initialSize: 5
minIdle: 5
maxActive: 20
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
#配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
filters: stat,wall,log4j
maxPoolPreparedStatementPerConnectionSize: 20
useGlobalDataSourceStat: true
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
#Solr配置信息
data:
solr:
host: http://localhost:8080/solr
core: collection1
repositories:
enabled: true
#redis
redis:
host: 127.0.0.1 #redis的主机ip
port: 6379
#eureka相关配置
eureka:
client:
healthcheck:
enabled: true
serviceUrl:
defaultZone: http://user:password123@localhost:8761/eureka
instance:
prefer-ip-address: true
instance-id: ${spring.application.name}:${spring.cloud.client.ipAddress}:${spring.application.instance_id:${server.port}}
metadata-map:
zone: ABC # eureka可以理解的元数据
lilizhou: BBC # 不会影响客户端行为
lease-renewal-interval-in-seconds: 5
# 或者:
feign.hystrix.enabled: false ## 索性禁用feign的hystrix支持
#mybatis
mybatis-plus:
mapper-locations: classpath:/mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
typeAliasesPackage: com.moxi.mogublog.xo.entity
global-config:
# 数据库相关配置
db-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: UUID
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
field-strategy: NOT_EMPTY
#驼峰下划线转换
column-underline: true
#数据库大写下划线转换
#capital-mode: true
#逻辑删除配置
logic-delete-value: 0
logic-not-delete-value: 1
db-type: mysql
#刷新mapper 调试神器
refresh: true
# 原生配置
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
####### 日志输出 #########
logging:
file: D:/mogu_blog/logs/web/web.log
level:
root: info
org.springframework.web: info
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化