1、在src\main\resources下创建application.yml配置文件

spring: 
  datasource: 
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8
    username: root
    password: root
  thymeleaf:
    mode: HTML5
    encoding: UTF-8
    content-type: text/html
name: cppdy123

 

相关文章:

  • 2021-09-17
  • 2021-04-11
  • 2021-06-28
  • 2021-08-21
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-08-19
  • 2022-01-07
  • 2021-08-27
  • 2022-12-23
  • 2023-03-21
  • 2021-06-28
相关资源
相似解决方案