上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 61 下一页
摘要: @RequestMapping("") public ModelAndView index(HttpSession session) { Object data = session.getAttribute("user"); ModelAndView view =... 阅读全文
posted @ 2015-07-25 21:24 Seaurl 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Spring mvc中@RequestMapping 6个基本用法小结 小结下spring mvc中的@RequestMapping的用法。1)最基本的,方法级别上应用,例如:Java代码@RequestMapping(value="/departments")publicStringsimpleP... 阅读全文
posted @ 2015-07-25 15:56 Seaurl 阅读(213) 评论(0) 推荐(0) 编辑
摘要: spring.net aop几个术语:切面:针对类切点:针对方法object.xml using System;using System.Collections.Generic;using System.Linq;using System... 阅读全文
posted @ 2015-07-24 15:20 Seaurl 阅读(217) 评论(0) 推荐(0) 编辑
摘要: spring MVC之构造ModelAndView对象----------构造ModelAndView对象当控制器处理完请求时,通常会将包含视图名称或视图对象以及一些模型属性的ModelAndView对象返回到DispatcherServlet。因此,经常需要在控制器中构造ModelAndView对... 阅读全文
posted @ 2015-07-23 08:20 Seaurl 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 浅析Spring.net 中的Aop使用Spring.NET 中的 AOP.NET中AOP的几种实现方案Spring.NET学习笔记12——面向切面编程(基础篇) Level 300 阅读全文
posted @ 2015-07-22 15:49 Seaurl 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Autofac下载地址:http://code.google.com/p/autofac/Castle Windsor下载地址:http://sourceforge.net/projects/castleproject/files/Windsor/2.5/Castle.Windsor.2.5.3.z... 阅读全文
posted @ 2015-07-22 13:49 Seaurl 阅读(388) 评论(0) 推荐(0) 编辑
摘要: Spring MVC中如果只使用JSP做视图,可以使用下面这段即可解决: 但很多时候我们需要的不只是JSP做view,可能会引用velocity、freemarker等做为view引擎时,需要加入额外的配置。下面是在配置文件中加入Free... 阅读全文
posted @ 2015-07-21 22:11 Seaurl 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 解决windows下MySQL表名大写自动变小写的问题有些人可能会遇到在windows下,表名不能用大写字母,即使使用了大写字母的建表语句,还是会被自动转成小写。解决方法:打开 MySQL 的配置文件 my.ini ,在 [mysqld] 节下加入Xml代码 lower_case_table_nam... 阅读全文
posted @ 2015-07-16 09:31 Seaurl 阅读(1482) 评论(0) 推荐(0) 编辑
摘要: 普通URL提交参数该格式url为:url.do?param1=mahc&param2=8888.00需要在上文中的HelloController对象添加方法如下:?1234567891011/*** Spring MVC URL提交参数* @param name* @return*/@Request... 阅读全文
posted @ 2015-07-12 21:20 Seaurl 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 一、SpringMVC注解入门1.创建web项目2.在springmvc的配置文件中指定注解驱动,配置扫描器Xml代码 扫描指定的包中的类上的注解,常用的注解有:@Controller 声明Action组件@Service 声明Service组件 @Service("myMovieLister")@... 阅读全文
posted @ 2015-07-12 21:18 Seaurl 阅读(283) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 61 下一页