Spring
iteye_13003
这个作者很懒,什么都没留下…
展开
-
Spring MVC Multiple File Upload example
[url]http://viralpatel.net/blogs/spring-mvc-multiple-file-upload-example/[/url]原创 2013-05-14 14:37:46 · 102 阅读 · 0 评论 -
Spring MVC 三种参数注入
[code="xml"][/code] 1)参数注入第一种方法 [code="xml"] [/code] [code="java"] private XmlWriteService xmlWriteService; @Override public void init() throws ServletException { super.init(); xm...原创 2013-04-16 22:43:41 · 361 阅读 · 0 评论 -
Spring mvc interceptor配置拦截器,没有登录跳到登录页
[code="xml"] [/code] [color=red][size=larg...原创 2013-03-11 17:03:24 · 594 阅读 · 0 评论 -
Spring mvc action获取mybaits数据
[size=medium][color=red]1)配置数据源(所要连接的数据库)db.xml[/color][/size] [code="xml"] com.ibm.db2.jcc.DB2Driver jdbc:db2://192.168.5.252:50000/ofcard front front ...原创 2013-03-07 14:10:34 · 113 阅读 · 0 评论 -
Spring mvc action调用另一个action
[code="java"] /** * 首页. * * @return */ @RequestMapping("/index.htm") public String index(HttpSession session) { String result = ""; if (session.getAttribute(Config.Passport.SES...原创 2013-03-06 19:20:11 · 710 阅读 · 0 评论 -
Spring mvc 调用action里的ajax
[size=medium]VM页面[/size] [code="js"] /** * 检查登录提交数据合法性 */ function checkLogin() { // AJAX 登录 var sendData = {'loginId':loginId,'password':password,'loginVerifyCode':"132456"}; jAnXin.ajax...原创 2013-03-06 18:42:44 · 109 阅读 · 0 评论 -
Spring mvc 设置session和获取值
第一中方式: [code="java"] @RequestMapping("/index.htm") public String index(HttpSession session) { session.setAttribute("name", "session"); Object name = session.getAttribute("name"); System.o...原创 2013-03-06 18:06:59 · 346 阅读 · 0 评论 -
Spring的两种引用方式,注解@Resource和ref
Bean Code [code="xml"] [/code] 1, [code="xml"] [/code] [color=red][size=large...原创 2012-08-15 17:08:05 · 721 阅读 · 0 评论 -
tomcat环境下上传大文件遇到的问题及解决办法
[color=red]在Server.xml中的Connector节中加入maxPostSize="0"[/color] maxPostSize The maximum size in bytes of the POST which will be handled by the container FORM URL parameter parsing. The limit can be ...原创 2013-05-14 15:01:37 · 292 阅读 · 0 评论 -
Spring MVC file limit - MultipartResolver config
[code="java"] 1048576 UTF-8 [/code]原创 2013-05-14 14:59:00 · 78 阅读 · 0 评论 -
Spring mvc action redirect to action
[code="java"]/** * 执行增加广告 * */ @RequestMapping("/ads/insertAds.htm") @Purview(value = { PurviewEnum.无 }) public void insertAds(ModelMap modelMap, AdsDTO adsDTO) { UserPassportDTO us...原创 2013-04-18 15:28:08 · 214 阅读 · 0 评论