Consistent use of <pre class="code">
Issue: SPR-8108
This commit is contained in:
@@ -38,7 +38,7 @@ import org.springframework.web.util.WebUtils;
|
||||
* <p><b>Example:</b> web.xml, mapping all "/myservlet" requests to a Spring dispatcher.
|
||||
* Also defines a custom "myServlet", but <i>without</i> servlet mapping.
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <servlet>
|
||||
* <servlet-name>myServlet</servlet-name>
|
||||
* <servlet-class>mypackage.TestServlet</servlet-class>
|
||||
@@ -59,7 +59,7 @@ import org.springframework.web.util.WebUtils;
|
||||
* configured HandlerInterceptor chain (e.g. an OpenSessionInViewInterceptor).
|
||||
* From the servlet point of view, everything will work as usual.
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
||||
* <property name="interceptors">
|
||||
* <list>
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.web.servlet.ModelAndView;
|
||||
* through the configured HandlerInterceptor chain (e.g. an OpenSessionInViewInterceptor).
|
||||
* From the Struts point of view, everything will work as usual.
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
|
||||
* <property name="interceptors">
|
||||
* <list>
|
||||
|
||||
@@ -36,7 +36,7 @@ import org.springframework.web.servlet.FlashMap;
|
||||
* automatically propagated to the "output" FlashMap of the current request.
|
||||
*
|
||||
* <p>Example usage in an {@code @Controller}:
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* @RequestMapping(value = "/accounts", method = RequestMethod.POST)
|
||||
* public String handle(Account account, BindingResult result, RedirectAttributes redirectAttrs) {
|
||||
* if (result.hasErrors()) {
|
||||
|
||||
@@ -63,7 +63,7 @@ import org.springframework.web.util.UriUtils;
|
||||
* is 'false'. When setting the URL value into a variable, escaping is not recommended.
|
||||
*
|
||||
* <p>Example usage:
|
||||
* <pre><spring:url value="/url/path/{variableName}">
|
||||
* <pre class="code"><spring:url value="/url/path/{variableName}">
|
||||
* <spring:param name="variableName" value="more than JSTL c:url" />
|
||||
* </spring:url></pre>
|
||||
* Results in:
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.web.context.ServletContextAware;
|
||||
* The simplest way to use this class is to specify just a "templateLoaderPath";
|
||||
* you do not need any further configuration then.
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
|
||||
* <property name="templateLoaderPath"><value>/WEB-INF/freemarker/</value></property>
|
||||
* </bean></pre>
|
||||
@@ -58,7 +58,7 @@ import org.springframework.web.context.ServletContextAware;
|
||||
* reference the "spring.ftl" macro library (contained in this package and thus
|
||||
* in spring.jar) like this:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <#import "/spring.ftl" as spring/>
|
||||
* <@spring.bind "person.age"/>
|
||||
* age is ${spring.status.value}</pre>
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.springframework.util.CollectionUtils;
|
||||
* view class. For example you might add the following code to your
|
||||
* {@code Controller}:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* Map<String, Object> model = new HashMap<String, Object>();
|
||||
* model.put("format", "pdf");</pre>
|
||||
*
|
||||
|
||||
@@ -137,7 +137,7 @@ public class MappingJackson2JsonView extends AbstractView {
|
||||
/**
|
||||
* Whether to use the default pretty printer when writing JSON.
|
||||
* This is a shortcut for setting up an {@code ObjectMapper} as follows:
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* ObjectMapper mapper = new ObjectMapper();
|
||||
* mapper.configure(SerializationFeature.INDENT_OUTPUT, true);
|
||||
* </pre>
|
||||
|
||||
@@ -137,7 +137,7 @@ public class MappingJacksonJsonView extends AbstractView {
|
||||
/**
|
||||
* Whether to use the default pretty printer when writing JSON.
|
||||
* This is a shortcut for setting up an {@code ObjectMapper} as follows:
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* ObjectMapper mapper = new ObjectMapper();
|
||||
* mapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
|
||||
* </pre>
|
||||
|
||||
@@ -91,7 +91,7 @@ import org.springframework.web.context.ServletContextAware;
|
||||
*
|
||||
* <p>A typical TilesConfigurer bean definition looks as follows:
|
||||
*
|
||||
* <pre>
|
||||
* <pre class="code">
|
||||
* <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
|
||||
* <property name="definitions">
|
||||
* <list>
|
||||
|
||||
Reference in New Issue
Block a user