做到测试类那步的时候,遇到问题了, Error creating bean with name areaDao defined in file. 大家遇到了吗 怎么解决呢
2018-03-16
MySQL的数据引擎InnoDB支持事务,而MYISAM不支持事务,所以如果生成的表是MYISAM它就不会滚,在配置文件中加入如下配置,让生成的表变成InnoDB的
spring.jpa.hibernate.naming.physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
spring.jpa.database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.naming.physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
spring.jpa.database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
IDEA连接数据库报错:
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
在main类 上的 @SpringBootApplication替换成@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no embedded datasource could be auto-configured.
在main类 上的 @SpringBootApplication替换成@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
2018-03-15
Error creating bean with name 'girlController': Unsatisfied dependency expressed through field 'girlRepository';为什么会出现这样的问题
2018-03-15