`
zengshaotao
  • 浏览: 754168 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

springboot配置的问题

 
阅读更多

server.port=8080

spring.mvc.view.prefix: /

spring.mvc.view.suffix: .html

#debug=true

mybatis.config-location=classpath:mybatis-config.xml

mybatis.mapper-locations=classpath:jnkj/mapper/*.xml

spring.datasource.driver-class-name: com.mysql.jdbc.Driver

spring.datasource.url: jdbc:mysql://localhost:3306/db_jxc?characterEncoding=utf-8

spring.datasource.username: root

spring.datasource.password: root

 

一定要注意啊,properties不是yml文件,所以必须是key:value的形式,否则就会出现无法识别数据库的问题:

Cannot determine embedded database driver class for database type NONE. 

 

当然导致这个问题的可能会是其他的原因。。。。。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics