
学习问题记录
westCode
小白随笔录
展开
-
spring-data-jpa在SpringBoot多模块项目整合JPA使用时,dao依赖注入失败
试了很多方法,都不行,依赖和jar包都没有少,就是依赖无法注入,找不到Dao层的bean解决方案:启动类上添加一下注解@SpringBootApplication(scanBasePackages =“com.example.userdal”)—dao层所在包路径上一层@EnableEurekaClient@ComponentScan(“com.example”)@EnableJpaRepositories(“com.example.userdal.dao”)—dao层包路径(JPA的子类).原创 2020-06-22 21:28:07 · 1364 阅读 · 0 评论 -
IDEA解决mysql时区问题:Server returns
IDEA关联MySQL报错:Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezone’ property manually.百度了下这是时区问题,MySQL默认的时区是UTC时区,比北京晚了8个小时,所以修改一下MySQL的时长进入MySQL,通过命令:set global time_zone=...原创 2020-03-29 15:54:02 · 291 阅读 · 0 评论