bootstrap.yml 978 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Tomcat
  2. server:
  3. port: 9500
  4. # Spring
  5. #logging:
  6. # level:
  7. # root: debug
  8. spring:
  9. application:
  10. # 应用名称
  11. name: zd-base
  12. profiles:
  13. # 环境配置
  14. active: dev
  15. cloud:
  16. nacos:
  17. discovery:
  18. # 服务注册地址
  19. server-addr: ${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
  20. config:
  21. # 配置中心地址
  22. server-addr: ${NACOS_HOST:127.0.0.1}:${NACOS_PORT:8848}
  23. # 配置文件格式
  24. file-extension: yml
  25. # 动态刷新
  26. refresh-enabled: true
  27. # 共享配置
  28. shared-configs:
  29. - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
  30. # mybatis配置
  31. mybatis:
  32. # 搜索指定包别名
  33. typeAliasesPackage: com.zd.message
  34. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  35. mapperLocations: classpath:mapper/**/*.xml
  36. configuration:
  37. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  38. call-setters-on-nulls: true