自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 Spring Boot整合mybatis-plus常见问题与解决

Spring Boot+mybatis-plus新人不踩坑搞了半天…1.SpringBoot自动注入后空指针2.使用@Autowired出现Could not autowire. No beans of ‘Mapperuser’ type found.3.使用mybatis-plus时遇到Failed to load ApplicationContext4.测试类中遇到Unable to find a @SpringBootConfiguration的情况5.依赖整合(可直接复制使用)1.Sp

2021-02-25 18:45:59 2135

原创 SpringBoot自动注入后遇到空指针java.lang.NullPointerException

SpringBoot自动注入后空指针加入@RunWith(SpringRunner.class)即可

2021-02-25 18:33:47 1050 1

原创 springboot测试类中遇到Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration

springboot测试类中遇到Unable to find a @SpringBootConfiguration的情况依据提示,将@SpringBootTest更改为@SpringBootTest(classes = main方法名.class)

2021-02-25 18:28:33 945

原创 使用mybatis-plus时遇到 Failed to load ApplicationContext

使用mybatis-plus时遇到Failed to load ApplicationContext问题原因在于配置mybatis规则与resources包的mapper冲突可将resources/mapper删除即可正常运行(可将sql连接池放在properties里)

2021-02-25 18:22:46 1640

原创 @Autowired@Resource注入失败

###加上构造器就好了

2021-02-22 15:18:06 407

原创 SpringBoot2创建demo时出现错误 Project ‘org.springframework.boot:spring-boot-starter-parent’ not found

SpringBoot2创建demo时出现的常见错误1.出现错误 Project ‘org.springframework.boot:spring-boot-starter-parent’ not foundMAVEN在环境配置中有问题,检查环境配置的路径是否缺失,注意斜杠,分号之类的path里面的%Maven_Home%\bin2.plugin等插件出现刷新无效,无法下载plugin一直卡死和报错因为没加版本号加入版本号后即可 <version>2.4.2</vers.

2021-02-22 00:57:40 3104 7

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除