上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 52 下一页
摘要: 一、在Spring中使用thymeleaf的步骤 1.配置 In order to use Thymeleaf with Spring, you’ll need to configure three beans that enable Thymeleaf-Spring integration: A 阅读全文
posted @ 2016-03-05 12:24 shamgod 阅读(7068) 评论(0) 推荐(0) 编辑
摘要: 一、 1.定义TilesConfigurer、TilesViewResolver的bean 注意有tiles2和tiles3,这里使用tiles3 (1)java形式 1 package spittr.web; 2 3 import org.springframework.context.annot 阅读全文
posted @ 2016-03-05 10:02 shamgod 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 一、<s:url> <s:url>可以直接生成一个url或url变量,它会在href的基础上加上应用context 1. <a href="<s:url href="/spitter/register" />">Register</a> 如果应用的context是“spittr”,则会转换为 <a 阅读全文
posted @ 2016-03-04 22:49 shamgod 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 一、 SPRING支持的GENERAL TAG LIBRARY 1. 二、用<s:message>和ReloadableResourceBundleMessageSource实现国际化 1.配置ReloadableResourceBundleMessageSource,它能it has the ab 阅读全文
posted @ 2016-03-04 22:27 shamgod 阅读(2216) 评论(0) 推荐(0) 编辑
摘要: 一、 Spring offers two JSP tag libraries to help define the view of your Spring MVC web views. One tag library renders HTML form tags that are bound to 阅读全文
posted @ 2016-03-04 21:30 shamgod 阅读(3748) 评论(0) 推荐(0) 编辑
摘要: 一、Spring支持的View Resolver 二、InternalResourceViewResolver Spring supports JSP views in two ways: InternalResourceViewResolver  Spring provides two JSP 阅读全文
posted @ 2016-03-04 20:08 shamgod 阅读(1781) 评论(0) 推荐(0) 编辑
摘要: 一、 Starting with Spring 3.0, Spring supports the Java Validation API in Spring MVC . No extra configuration is required to make Java Validation work i 阅读全文
posted @ 2016-03-04 17:40 shamgod 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 一、显示注册表单 1.访问资源 1 @Test 2 public void shouldShowRegistration() throws Exception { 3 SpitterRepository mockRepository = mock(SpitterRepository.class); 阅读全文
posted @ 2016-03-04 17:05 shamgod 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 一 1.以path parameters的形式给action传参数 1 @Test 2 public void testSpittle() throws Exception { 3 Spittle expectedSpittle = new Spittle("Hello", new Date()); 阅读全文
posted @ 2016-03-04 16:24 shamgod 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 一、 1.Spring MVC provides several ways that a client can pass data into a controller’s handler method. These include  Query parameters Form parameter 阅读全文
posted @ 2016-03-04 16:12 shamgod 阅读(7078) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 52 下一页
haha