开发细节
想不到科技
这个作者很懒,什么都没留下…
展开
-
开发中的小细节
1.注意空指针异常String phone = request.getParameter("phone");//需要先判断phone是否为空,避免phone=null是报错if (phone==null || phone.length() < 11 || phone.length() > 11) { System.out.println(); }2.3.4.5.6原创 2016-11-11 10:00:23 · 248 阅读 · 0 评论 -
tomcat运行报错Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
tomcat运行报以下错,多半情况是找不到jar包Failed to start component [StandardEngine[Catalina].StandardHost[localhost].解决办法如图:右键项目-> 属性->添加lib转载 2018-05-10 09:02:06 · 2959 阅读 · 0 评论 -
Spring 项目 web.xml 出错问题解决方案
web.xml会莫名其妙的报错下面这种错误:Multiple annotations found at this line: - Attribute "xmlns:xsi" must be declared for element type "web-app". - Attribute "xsi:schemaLocation" must be declared for ...转载 2018-05-10 09:06:11 · 553 阅读 · 0 评论 -
Maven 生产环境 测试环境 开发环境 打包配置,并解决异常
1.解决maven打包Mark invalid异常pom.xml代码里:Mark invalid (org.apache.maven.plugins:maven-resources-plugin:2.7:resources:default-resources:process-resources)执行打包时:[ERROR] Failed to execute goal org.apac...原创 2018-06-25 17:42:34 · 375 阅读 · 0 评论