當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
SpringBoot的yml配置文件
生活随笔
收集整理的這篇文章主要介紹了
SpringBoot的yml配置文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、在src\main\resources下創建application.yml配置文件
spring: datasource: driver-class-name: com.mysql.jdbc.Driverurl: jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8username: rootpassword: rootthymeleaf:mode: HTML5encoding: UTF-8content-type: text/html name: cppdy123?
轉載于:https://www.cnblogs.com/jiefu/p/10053098.html
總結
以上是生活随笔為你收集整理的SpringBoot的yml配置文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux系统定时任务crond入门
- 下一篇: 用第三方工具类,将JavaBean、Li