最赞回答 / 时而abc
spring: profiles: active: dev datasourse: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/dbgirl username: root password: 123456 jpa: hibernate: ddl-auto: update show-sql: true我的一直生成不了表,没有报错
2017-08-14
最新回答 / 鲲鹏_斯坦森
两点:1、GirlRepository的声明一定要去继承JpaRepository。<...code...>2、GirlController中一定要注入GirlRepository。<...code...>
2017-08-11
最新回答 / xiaobumi123
你可以改一下配置,idea中右击file,选择setting,找到maven,点击打开有importing选项,勾选import maven project automatically,当以有新的依赖加入,会自动导入需要的东西
2017-08-04