开源项目,修改Mysql数据库配置yaml文件"/>
部署开源项目,修改Mysql数据库配置yaml文件
一般来说部署到本地,使用自己的数据库与原来数据库不同。
找到yaml文件, JDBC:其中修改用户名username、密码password、url中端口号和数据库名称
spring: mvc:static-path-pattern: /**thymeleaf: servlet:content-type: text/htmlencoding: UTF-8cache: falsedatasource: type: com.alibaba.druid.pool.DruidDataSourceurl: jdbc:mysql://localhost:3306/maydaytest?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=trueusername: ********password: ********driver-class-name: com.mysql.jdbc.Driver
更多推荐
部署开源项目,修改Mysql数据库配置yaml文件
发布评论