`
1happy10
  • 浏览: 19801 次
  • 性别: Icon_minigender_1
  • 来自: 感德
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论
文章列表
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava ...
严重: Exception starting filter struts2 java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:189) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479) at com. ...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder 汗。。竟然还得加包,去http://www.slf4j.org/codes.h ...
struts2.xml文件详解 关键字: struts2 <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd" > <struts>     <!-- include节点是struts2中组件化的方式 可以将每个 ...
Struts2的异常处理机制 Struts2采用声明式的方法管理异常处理,因此我们无需在execute方法体内写大量的try...catch...语句来捕获异常,execute方法将产生的所有异常抛出,统一交由Struts2框架处理,我们只需在struts.xml文件中配置异常的映射机制,Struts2便能够处理并转入相应的视图资源。 异常映射可分为全局异常映射和局部异常映射,它和<result .../>的性质是一样的。 配置代码如下: Xml代码 <struts>      <package name="struts2" ex ...
action类 package edu.hust.action; import java.util.Calendar; import java.util.Date; import com.opensymphony.xwork2.ActionSupport; public class RegisterAction extends ActionSupport {          private static final long serialVersionUID = 1L;          private String username;     private Str ...
No configuration found for the specified action 这个错误提示相信很多人和我一样都碰到过,现在决定还是要把他解决掉 首先看下其正确得全部错误提示,基本应该是这样得: WARN - No configuration found for the specified action: 'xxxxxv.ation'in namespace: '/'. Form action defaulting to 'action' attribute's literal value. 英语好一点得朋友都能直接翻译,意思也很明了,就是没有发现对“xxxx.a ...
Struts2中action和field级别错误处理          在 struts2中,一般的action都继承ActionSupport这个类,可以重写public void validate()来进行数据校验,对应提示信息来说一般有两个比较常用的方法就是this.addFieldError("field name","error message"); 和 this.addActionError("error message");两个方法。由于在ActionSupport这个类实现了ValidationAware接口,接口里 ...
存盘 Ctrl+s(肯定知道) 注释代码 Ctrl+/ 取消注释 Ctrl+\(Eclipse3已经都合并到Ctrl+/了) 代码辅助 Alt+/ 快速修复 Ctrl+1 代码格式化 Ctrl+Shift+f 整理导入 Ctrl+Shift+o 切换窗口 Ctrl+f6<可改为ctrl+tab方便> ctrl+shift+M 导入未引用的包 ctrl+w 关闭单个窗口 F3 跳转到类、变量的声明 F11 运行上次程序 Ctrl + F11 调试上次程序 Alt + 回下一个编辑点 ctrl+shift+T 查找工程中的类 最经典的快捷键 Ctrl+1 ...
Global site tag (gtag.js) - Google Analytics