Java开发
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 使用maven创建web工程,将Spring配置文件applicationContext.xml放在src/resource下,用eclipse编译时提示class path resource [applicationContext.xml] cannot be opened because it ... 阅读全文
posted @ 2015-04-13 10:29 King Bruce 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: 使用return false 可以使表单不提交。 取消 cancelSubmit 里面返回return false。 functioncancelSubmit(){location.href='/cms/role/list.do';returnfalse; } 阅读全文
posted @ 2015-03-25 15:20 King Bruce 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 第一节 一。。。第一节 一。。。第一节 一。。。第一节 一。。。 阅读全文
posted @ 2015-03-21 18:50 King Bruce 阅读(97) 评论(0) 推荐(0) 编辑
摘要: springmvcorg.mortbay.jettyjetty-maven-plugin8.1.8.v20121106manual/${project.build.finalName}908060000--> 在cmd 里面输入mvn jetty:run即可运行 阅读全文
posted @ 2015-02-28 10:03 King Bruce 阅读(278) 评论(0) 推荐(0) 编辑
摘要: web.xml里面可以定义两种参数:(1)application范围内的参数,存放在servletcontext中,在web.xml中配置如下:xml 代码context/paramavalibleduringapplication(2)servlet范围内的参数,只能在servlet中取得,在we... 阅读全文
posted @ 2015-02-26 09:32 King Bruce 阅读(632) 评论(0) 推荐(0) 编辑
摘要: Spring 上下文WebApplicationContext.是服务器启动的时候加载ContextLoaderListener 的时候存在 ServletContext 中 servletContext.setAttribute(WebApplicationContext.ROOT_WEB_AP... 阅读全文
posted @ 2015-02-03 16:23 King Bruce 阅读(268) 评论(0) 推荐(0) 编辑
摘要: Struts 上下文ActionContext 、ServletActionContext 是继承关系ActionContextActionContextcontext=ActionContext.getContext();Mapparams=context.getParameters();Stri... 阅读全文
posted @ 2015-02-03 15:02 King Bruce 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Struts 核心控制器是FilterDispatchSpring核心控制器是DispatchServlet 阅读全文
posted @ 2015-02-03 14:52 King Bruce 阅读(159) 评论(0) 推荐(0) 编辑
摘要: @Repository代表仓库. 一般注解在DAO实现类上, 别人看代码时, 就知道这个类是一个跟数据存储有关的类.@Service代表业务. 一般注解在Service实现类上.@Controller代表控制器. 一般注解在控制器类上.如果你的类不是以上类型(数据存储类, 业务类, 控制器), 可以... 阅读全文
posted @ 2015-02-01 15:59 King Bruce 阅读(197) 评论(0) 推荐(0) 编辑
摘要: BeanFactory和ApplicationContext对待bean后置处理器稍有不同。ApplicationContext会自动检测在配置文件中实现了BeanPostProcessor接口的所有bean,并把它们注册为后置处理器,然后在容器创建bean的适当时候调用它。部署一个后置处理器同部署... 阅读全文
posted @ 2015-01-05 22:38 King Bruce 阅读(183) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页