我正在尝试安装vanilla BrazosUI developer edition 5.1.0示例web应用程序,方法是遵循官方说明并使用maven构建.war包。当我在tomcat上部署web应用程序并尝试打开uri- http://localhost:8080/brazos-open/service/brazos/version版本时,我在Catalina日志中收到以下警告:
03-May-2017 17:25:38.260 WARNING [http-nio-8080-exec-5] org.springframework.web.servlet.DispatcherServlet.noHandlerFound No mapping found for HTTP request with URI [/brazos-open/service/brazos/version] in DispatcherServlet with name 'dispatcher'我在Windows 10 32位上使用Maven 3.5.0,Tomcat 8.5.14,JVM 1.8.0_121-b13。
以前有没有人遇到过这个问题?
谢谢。
发布于 2017-05-05 19:21:41
5.1版本中存在一个缺陷,其中未声明所需的bean。要解决此问题,您需要:
Add the following to the sample app DispatcherServletConfiguration.java
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
..
..
@Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
return new PropertySourcesPlaceholderConfigurer();
}发布于 2017-05-10 03:19:16
此缺陷已在Brazos UI 5.1.1 release中解决(需要注册和登录)。可以在here上找到详细说明所有修复和改进的完整版本说明。
https://stackoverflow.com/questions/43785322
复制相似问题