会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Java开发
King Bruce
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2015年4月13日
Maven项目 Spring 单元测试
摘要: 使用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
阅读(1118)
评论(0)
推荐(0)
2015年3月25日
表单不提交
摘要: 使用return false 可以使表单不提交。 取消 cancelSubmit 里面返回return false。 functioncancelSubmit(){location.href='/cms/role/list.do';returnfalse; }
阅读全文
posted @ 2015-03-25 15:20 King Bruce
阅读(264)
评论(0)
推荐(0)
2015年3月21日
测试
摘要: 第一节 一。。。第一节 一。。。第一节 一。。。第一节 一。。。
阅读全文
posted @ 2015-03-21 18:50 King Bruce
阅读(105)
评论(0)
推荐(0)
2015年2月28日
Maven 添加Jetty
摘要: springmvcorg.mortbay.jettyjetty-maven-plugin8.1.8.v20121106manual/${project.build.finalName}908060000--> 在cmd 里面输入mvn jetty:run即可运行
阅读全文
posted @ 2015-02-28 10:03 King Bruce
阅读(283)
评论(0)
推荐(0)
2015年2月26日
InitParam与ContextParm的异同
摘要: web.xml里面可以定义两种参数:(1)application范围内的参数,存放在servletcontext中,在web.xml中配置如下:xml 代码context/paramavalibleduringapplication(2)servlet范围内的参数,只能在servlet中取得,在we...
阅读全文
posted @ 2015-02-26 09:32 King Bruce
阅读(640)
评论(0)
推荐(0)
2015年2月3日
Spring 上下文
摘要: Spring 上下文WebApplicationContext.是服务器启动的时候加载ContextLoaderListener 的时候存在 ServletContext 中 servletContext.setAttribute(WebApplicationContext.ROOT_WEB_AP...
阅读全文
posted @ 2015-02-03 16:23 King Bruce
阅读(284)
评论(0)
推荐(0)
Struts 上下文
摘要: Struts 上下文ActionContext 、ServletActionContext 是继承关系ActionContextActionContextcontext=ActionContext.getContext();Mapparams=context.getParameters();Stri...
阅读全文
posted @ 2015-02-03 15:02 King Bruce
阅读(158)
评论(0)
推荐(0)
Struts 和Spring的核心控制器
摘要: Struts 核心控制器是FilterDispatchSpring核心控制器是DispatchServlet
阅读全文
posted @ 2015-02-03 14:52 King Bruce
阅读(172)
评论(0)
推荐(0)
2015年2月1日
Spring 中的注解
摘要: @Repository代表仓库. 一般注解在DAO实现类上, 别人看代码时, 就知道这个类是一个跟数据存储有关的类.@Service代表业务. 一般注解在Service实现类上.@Controller代表控制器. 一般注解在控制器类上.如果你的类不是以上类型(数据存储类, 业务类, 控制器), 可以...
阅读全文
posted @ 2015-02-01 15:59 King Bruce
阅读(209)
评论(0)
推荐(0)
2015年1月5日
BeanFactory 和ApplicationContext
摘要: BeanFactory和ApplicationContext对待bean后置处理器稍有不同。ApplicationContext会自动检测在配置文件中实现了BeanPostProcessor接口的所有bean,并把它们注册为后置处理器,然后在容器创建bean的适当时候调用它。部署一个后置处理器同部署...
阅读全文
posted @ 2015-01-05 22:38 King Bruce
阅读(189)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页
公告