java
隐-水土不服
加油!
展开
-
spring tool suite 项目代码没有错误,但项目名字上报红叉
报错信息:Invalid classpath publish/export dependency c:/Users/maven/.gradle/caches/modules-2/files-2.1/jstl/jstl/1.2/74aca283cd4f4b4f3e425f5820cda58f44409547/jstl-1.2jar. the project contains another de原创 2017-07-31 10:49:21 · 3951 阅读 · 0 评论 -
STS 无法启动
报错:a java Runtime Environment (JRE) or java Development Kit (jdk) must be available in order to run STS.No java virtual machine was found after searching the following locations: D:/software/JDK/jdk7/原创 2017-07-31 10:51:13 · 11698 阅读 · 2 评论 -
项目中常见报错,保存下,以后遇到可以快速解决
报错信息:Caused by: Action class [cn.tedu.controller.UserAction] does not have a public no-arg constructor - action - file:/C:/apache-tomcat-8.0.44/wtpwebapps/mavenTest/WEB-INF/classes/struts.xml:19:61原创 2017-07-31 10:53:20 · 509 阅读 · 0 评论 -
工作常用正则规则验证代码,欢迎补充
/** * 手机正则表达式 */ public static final Pattern PATTERN_MOBILE = Pattern.compile("^[1][3,4,5,7,8][0-9]{9}$"); /** * 电话正则表达式 * * 首先验证不带区号 * 再验证带区号的 * 最后验证是否加分机的 * */ public static final Patt原创 2017-08-17 14:04:02 · 292 阅读 · 0 评论 -
导入SpringMVC项目报错
报错:HttpServletRequest cannot be resolved to a type 翻译:HttpServletRequest不能解决一个类型 解决: 项目名--> 右键 Property--> 选择 Java Build Path--> 选择 Add External JARs--> 选择原创 2017-08-03 10:23:23 · 2141 阅读 · 0 评论 -
项目运行报错,service注解无效
报错信息:Error creating bean with name 'verControllerService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException。。。。。。。 中文翻译:创原创 2017-08-14 14:50:57 · 5316 阅读 · 0 评论 -
小程序五彩圈代码,记录
模仿写了个小程序,还挺有意思的! package fireworks; import java.applet.Applet; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Graphics; import java.awt.event.MouseEvent; impor原创 2017-08-22 14:33:19 · 386 阅读 · 0 评论 -
Eclipse下启动tomcat报错:The archive: C:/Program Files(x86)/Java/jdk1.7.0_10/lib/tools.jar which is refere
1.错误: 在Eclipse下启动tomcat的时候,报错为:Eclipse下启动tomcat报错:The archive: C:/Program Files(x86)/Java/jdk1.7.0_10/lib/tools.jar which is referenced by the classpath, doesnot exist. 2.原因: 这是因为我中途移动过转载 2017-10-27 10:36:02 · 8112 阅读 · 0 评论