代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。