城阳做网站公司,网站怎么做移动端适配,wordpress会员注册,页面设计的英文springboot的配置文件有两种格式分别是properties和yml/yaml
创建配置文件 在创建springboot项目时候#xff0c;会默认生成application.properties这种格式
书写风格
端口
application.propertis server.port8080 application.yml server:port: 8080 连接数据库
applica…springboot的配置文件有两种格式分别是properties和yml/yaml
创建配置文件 在创建springboot项目时候会默认生成application.properties这种格式
书写风格
端口
application.propertis server.port8080 application.yml server:port: 8080 连接数据库
application.propertis spring.datasource.urljdbc:mysql://localhost:3306/xxxx?setUnicodetruecharacterEncodingutf8
spring.datasource.name
spring.datasource.password application.yml spring:datasource:name:password: url: jdbc:mysql://localhost:3306/xxx?setUnicodetruecharacterEncodingucong 从连接数据库配置上来看用application.yml格式来书写代码会简洁的多