
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 · 633 阅读 · 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 · 2052 阅读 · 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 · 1579 阅读 · 1 评论