java_idea
·一.
学无止境
展开
-
在idea中实现了Serializable接口,提示导入serialVersionUID序列号
在idea中实现了Serializable接口,但是idea不提示导入serialVersionUID序列号。 只用于封装属性的类应该实现Serializable接口,eclipse中会自动提示要添加序列号;但是idea中不会自动提示,它需要进行配置。如图: ...原创 2020-03-01 22:34:16 · 1559 阅读 · 0 评论 -
IDEA中"could not autowire,no beans of 'UserMapper' type found"的问题解决
** idea在自动装配时报错(“could not autowire,no beans of ‘UserMapper’ type found”),有两种解决办法。 ** 先看错误方式 UserMapper接口已经创建好,没有错误,但是提示不能装配! 解决方法1 将注解@Autowired 修改为@Resource,错误消失。 解决方法2 在声明userMapper接口时,添加注解@Compon...原创 2020-03-01 22:12:26 · 901 阅读 · 0 评论