标签:
问题:The method of type must override asuperclass? annotation:@Override的原因
办法:项目右键->build path->configure build path->java Compiler(左边那排中) ->在右边的Compiler compliance level 修改版本为 6.0
参考:http://linhfgo.iteye.com/blog/1470996
问题:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
办法:Installed JREs 使用本机的JDK
参考:http://macrotea.iteye.com/blog/1521254
问题:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
办法:
1、确认本机安装了JDK。
2、由于Eclipse使用的是JRE导致,添加JDK即可。
参考:http://my.oschina.net/zhuka/blog/124503
问题:maven Error configuring application listener of class org.springframework.web.util
1、Clean 项目
2、Clean Server
3、项目的Deployment Assembly 中 添加Maven Dependencies
参考:http://www.yihaomen.com/article/java/471.htm
问题:在springMVC中使用Freemarker,配置静态资源路径后(mvc:resources
),访问Controller出现404
办法:配置默认的注解映射的支持 <mvc:annotation-driven />
参考:http://my.oschina.net/duoduo3369/blog/168458
问题:在springMVC中使用Freemarker,配置静态资源路径后(mvc:resources
),静态文件404
办法:在 web.xml 中让springmvc拦截所有请求
<servlet-mapping> <servlet-name>spring</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping>
参考:http://my.oschina.net/duoduo3369/blog/168458
标签:
原文地址:http://www.cnblogs.com/tenghoo/p/maven_error.html