2020.04.18

记录遇到的问题

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值