
常见错误
文章平均质量分 61
粟西米
一枚正在努力的程序猿
展开
-
The required Server component failed to start so Tomcat is unable to start.
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:XXXXX' did not find a mat 从信息上看,是server.xml的Context节点不支持source属性。解决办法:原创 2017-09-09 16:41:01 · 486 阅读 · 1 评论 -
修改Tomcat的context.xml文件,Tomcat重启后修改内容消失
最近的项目需要修改 context.xml 文件,可是每次重启Tomcat,context 文件又还原了。从网上查了一些资料,但总感觉说的不是很清楚,在此记录下我的环境和操作,希望对其他人有所帮助。例如环境如下:Tomcat 安装路径:D:\apache\apache-tomcat-7.0.56\Eclipse工作空间:D:\De...原创 2018-04-13 17:01:45 · 2725 阅读 · 1 评论 -
Activiti工作流之异常处理一
SpringMVC + Activiti部署应用时出现文章最后的异常代码。这里说明一下,在部署应用时使用Spring自动部署流程。首先,仔细检查各个Service的@Service标识是否都写上,没问题下一步。然后,检查Acticiti的act_ge_property中的初始化数据是否存在,初始化数据库时该表中应该包含三条记录。如果没有则Spring在部署应用时自动部署流程,查询该表数据不...原创 2018-04-12 20:23:02 · 3584 阅读 · 0 评论 -
spring+shiro整合项目启动错误
Line argument must contain a key and a value. Only one string token was found. 改为如下格式就可以了原创 2018-04-10 11:42:49 · 667 阅读 · 0 评论 -
shiro启动错误
配置完shiro权限字符串之后,启动项目报错。错误信息如下:<br />PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'filterChainDefinitions' threw exception; nested exception i...原创 2018-03-26 15:15:21 · 968 阅读 · 0 评论 -
JSP页面表单提交,controller接收为乱码,以及保存到数据库时为乱码解决方法
1.确保项目编码为utf82.确保数据库编码为utf8,以mysql为例,可到mysql目录下,my.ini文件中修改后,重启mysql服务重启mysql服务方法:3.数据库建库时,确认编码为utf-8,以使用Navicat为例4.jsp页面顶端加入<%@ page language="java" import="java.uti...原创 2018-03-24 09:29:16 · 544 阅读 · 0 评论 -
静态资源无法找到(No mapping found for HTTP request with URI)问题
部署项目后程序加载或用浏览器访问时出现类似的警告,2011-01-19 10:52:51,646 WARN [org.springframework.web.servlet.PageNotFound] -<No mapping found for HTTP request with URI [/springmvc/images/1.jpg] in DispatcherServlet with...原创 2018-03-12 16:40:57 · 1123 阅读 · 1 评论 -
@org.springframework.beans.factory.annotation.Autowired(required=true)
错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘paymentOrderController’: Injection of autowired dependencies failed; nested exception is org.springframewo...原创 2018-03-05 15:10:21 · 6748 阅读 · 0 评论 -
Address already in use: JVM_Bind<null>:8080错误的解决办法
严重:Error initializing endpoint java.net.BindException: Address already in use: JVM_Bind:8080 at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509) at org.apache.coyote.http11.Http11Pr原创 2017-08-23 23:24:41 · 863 阅读 · 0 评论 -
eclipse中不能打断点的解决方案
Eclipse 无法打断点问题-遇到带斜杠的断点图标 今天调试eclipse程序,莫名的就遇到这种问题。解决:在run菜单里面,把skip all breakpoints 选项勾去即可。如图:原创 2017-10-24 18:29:13 · 5456 阅读 · 2 评论 -
最常见到的runtime exception 异常
ArithmeticException, 算术异常ArrayStoreException, 将数组类型不兼容的值赋值给数组元素时抛出的异常BufferOverflowException, 缓冲区溢出异常BufferUnderflowException, 缓冲区下溢异常 CannotRedoException, 不能重复上一次操作异常 CannotUndoException, 不能撤销上一次操作异原创 2017-10-21 09:48:02 · 1854 阅读 · 1 评论 -
Multiple annotations found at this line: - String cannot be resolved to a type
报错内容:Multiple annotations found at this line:- String cannot be resolved to a type- The method getContextPath() from the type HttpServletRequest refers to the missing type String解决办法:首先 右击该项目 - Bui原创 2017-09-11 16:55:50 · 1506 阅读 · 1 评论 -
idea中yml文件图标问题及自动提示失效解决方法
解决方法:原创 2018-08-03 17:38:29 · 13493 阅读 · 1 评论