application.properties文件配置


# 服務端口
server.port=8001
# 服務名
spring.application.name=service-edu

# 環境設置:dev、test、prod
spring.profiles.active=dev

# mysql數據庫連接,8版本注意配時區
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/guli?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
spring.datasource.username=root
spring.datasource.password=root

#返回json的全局時間格式
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8

#配置mapper xml文件的路徑
mybatis-plus.mapper-locations=classpath:com/atguigu/eduservice/mapper/xml/*.xml

# nacos服務地址
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848

#開啟熔斷機制
#feign.hystrix.enabled=true
# 設置hystrix超時時間,默認1000ms
#hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=6000

# 設置日志級別
#logging.level.root=INFO
#mybatis日志
#mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM