![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring异常
TheBlindM
思想
展开
-
SpringBootTest运行时 Error creating bean with name ‘serverEndpointExporter‘
Error creating bean with name ‘serverEndpointExporter’原因:websocket是需要依赖tomcat等容器的启动。所以在测试过程中我们要真正的启动一个tomcat作为容器。解决:加上webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT即可@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_POR原创 2021-02-01 10:27:47 · 572 阅读 · 0 评论 -
异常java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'xxx' method
异常java.lang.IllegalStateException: Ambiguous mapping. Cannot map ‘xxx’ method不明确的映射。无法映射“xxx”方法Caused by: java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'app_FaceSpeedDoorController'...原创 2019-10-27 11:11:50 · 2007 阅读 · 0 评论 -
Spring配置文件通过${}获取不到属性
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name ‘jedisConnectionFactory’ defined in class path resource [spring-redis.xml]: Could not resolve placehol...原创 2019-06-17 14:09:56 · 1472 阅读 · 1 评论