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.
当然导致这个问题的可能会是其他的原因。。。。。
相关推荐
yupi0 2020-10-10
spring 2020-08-18
编程点滴 2020-07-29
幸运小侯子 2020-07-05
itjavashuai 2020-07-04
qingjiuquan 2020-06-29
shushan 2020-06-25
小鱿鱼 2020-06-22
咻pur慢 2020-06-18
melonjj 2020-06-17
qingjiuquan 2020-06-13
neweastsun 2020-06-05
小鱿鱼 2020-06-05
mxcsdn 2020-05-31
吾日五省我身 2020-05-27
牧场SZShepherd 2020-05-27
sweetgirl0 2020-05-14