随笔分类 - Spring In Action 第4版笔记
摘要:一、SpringSecurity的模块 At the least, you’ll want to include the Core and Configuration modules in your application’s classpath. Spring Security is often
阅读全文
摘要:States, transitions, and entire flows can be secured in Spring Web Flow by using the <secured> element as a child of those elements. For example, to s
阅读全文
摘要:一、 1. 2.payment-flow.xml <?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.o
阅读全文
摘要:一、 1.订单流程定义文件order-flow.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://w
阅读全文
摘要:一、 1. 2. 3.customer-flow.xml 自己定义customer,最后output 1 <?xml version="1.0" encoding="UTF-8"?> 2 <flow xmlns="http://www.springframework.org/schema/webfl
阅读全文
摘要:一、 1. 2.pizza-flow.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3
阅读全文
摘要:一、 In Spring Web Flow, a flow is defined by three primary elements: states, transitions,and flow data.如果把webflow当做是一次旅行,则state是旅途中每个景点,而transitions是连接
阅读全文
摘要:一、 1.Wiring a flow executor <flow:flow-executor id="flowExecutor" /> Although the flow executor is responsible for creating and executing flows, it’s
阅读全文
摘要:一、redirect为什么会丢数据? when a handler method completes, any model data specified in the method is copied into the request as request attributes, and the r
阅读全文
摘要:No matter what happens, good or bad, the outcome of a servlet request is a servlet response. If an exception occurs during request processing, the out
阅读全文
摘要:一、用 MultipartFile 1.在html中设置<form enctype="multipart/form-data">及<input type="file"> 1 <html xmlns:th="http://www.thymeleaf.org"> 2 <head> 3 <title>Sp
阅读全文
摘要:一、什么是multipart The Spittr application calls for file uploads in two places. When a new user registers with the application, you’d like them to be able
阅读全文
摘要:一、所有声明都用xml 1. 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.or
阅读全文
摘要:一、 1.如想在DispatcherServlet在Servlet容器中注册后自定义一些操作,如开启文件上传功能,则可重写通过AbstractAnnotationConfigDispatcherServletInitializer 的customizeRegistration() 来实现 1 //
阅读全文
摘要:一、在Spring中使用thymeleaf的步骤 1.配置 In order to use Thymeleaf with Spring, you’ll need to configure three beans that enable Thymeleaf-Spring integration: A
阅读全文
摘要:一、 1.定义TilesConfigurer、TilesViewResolver的bean 注意有tiles2和tiles3,这里使用tiles3 (1)java形式 1 package spittr.web; 2 3 import org.springframework.context.annot
阅读全文
摘要:一、<s:url> <s:url>可以直接生成一个url或url变量,它会在href的基础上加上应用context 1. <a href="<s:url href="/spitter/register" />">Register</a> 如果应用的context是“spittr”,则会转换为 <a
阅读全文
摘要:一、 SPRING支持的GENERAL TAG LIBRARY 1. 二、用<s:message>和ReloadableResourceBundleMessageSource实现国际化 1.配置ReloadableResourceBundleMessageSource,它能it has the ab
阅读全文
摘要:一、 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
阅读全文
摘要:一、Spring支持的View Resolver 二、InternalResourceViewResolver Spring supports JSP views in two ways: InternalResourceViewResolver Spring provides two JSP
阅读全文

浙公网安备 33010602011771号