记录遇到的问题
1.Cannot determine embedded database driver class for database type NONE
没有连接数据库导致springboot报错,在启动类中@SpringBootApplication中排除其注入@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
参考链接
2.java.lang.NoClassDefFoundError: org/springframework/boot/bind/PropertiesConfigurationFactory
因为dubbo和zk版本与springboot版本不一致,当时用的是
springboot2.1.13RELEASE换成1.5.21即可
3.明明dubboadmin界面上显示有提供者和消费者,但运行程序提示No provider available from registry
因为在UmsMemberServiceImpl中将@Autowired 写成@Reference
4.springboot多模块获取不到其他模块的依赖
查看右侧maven中无法看到依赖模块,可以手动添加
有可能是因为在pom中没有加入(没有验证)
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
5.mybatis generator不生成bean主键操作
在jdbc连接url上加nullCatalogMeansCurrent=true