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
原文地址:https://www.cnblogs.com/cppdy/p/10053098.html
时间: 2024-11-08 10:23:51