![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
问题解决记录
文章平均质量分 51
记录一些问题的解决思路
SISD
这个作者很懒,什么都没留下…
展开
-
关于Spring Boot报错:LoggerFactory is not a Logback LoggerContext but Logback is on the classpath
一、问题的现象1、使用spring-boot-starter-web重构项目时,遇到报错:SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/C:/Users/mou/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar!/org/slf4j/impl/StaticLoggerBinder.cla原创 2022-02-22 11:27:03 · 10602 阅读 · 0 评论 -
关于SpringBootTest报错java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration的问题解决方案
一、问题的现象1、使用spring-boot-starter-test,执行测试时报错:java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test二、解决方案将测试类的包名修改与启动类的包名相同例如:测试类package media原创 2022-01-17 17:58:23 · 1551 阅读 · 0 评论 -
关于spring aop针对spring mvc的@RequestMapping方法切面的方法没有执行的解决方案
一、问题的现象1、使用Spring MVC,创建Controller类和@RequestMapping方法@Controller@RequestMapping("/product")public class ProductController { @Autowired ProductServiceImpl productService; @RequestMapping("/findAll.do") public ModelAndView findAll(@Reque原创 2021-08-17 16:34:10 · 1721 阅读 · 1 评论 -
关于mybatis的Parameter ‘userid‘ not found. Available parameters are [arg1, arg0, param1, param2]的解决方案
一、异常的内容调用的映射方法: @Insert("insert into user_role(userId,roleId) values(#{userId},#{id})") void saveUserWithRole( String userId, String id) throws MyException;出现的异常:Caused by: org.apache.ibatis.binding.BindingException: Parameter 'userId' not fou原创 2021-08-13 11:40:24 · 2273 阅读 · 0 评论 -
关于but was actually of type ‘com.sun.proxy.$Proxy232‘解决方案
一、异常的内容Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'userService' is expected to be of type 'com.mediacomm.service.impl.UserServiceImpl' but was actually of type 'com.sun.proxy.$Proxy232' at org.springframework.原创 2021-08-11 13:51:39 · 1256 阅读 · 0 评论 -
关于springframework.beans.factory.BeanDefinitionStoreException:Caused by: FileNotFoundException解决方案
一、异常的内容org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [springMVC.xml]; nested exception is java.io.FileNotFoundException: class path resource [springMVC.xml] cannot be opened becau原创 2021-08-05 14:17:01 · 3466 阅读 · 0 评论