Polish Javadoc for FreeMarker support

This commit is contained in:
Sam Brannen
2019-06-10 16:03:16 +03:00
parent b58f34d802
commit ac28de0dc1
7 changed files with 11 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ import org.springframework.web.context.ServletContextAware;
* using Spring's FreeMarkerView for web MVC. It exists purely to configure FreeMarker.
* It is not meant to be referenced by application components but just internally
* by FreeMarkerView. Implements FreeMarkerConfig to be found by FreeMarkerView without
* depending on the bean name the configurer. Each DispatcherServlet can define its
* depending on the bean name of the configurer. Each DispatcherServlet can define its
* own FreeMarkerConfigurer if desired.
*
* <p>Note that you can also refer to a preconfigured FreeMarker Configuration
@@ -57,8 +57,7 @@ import org.springframework.web.context.ServletContextAware;
* for web and email usage, for example.
*
* <p>This configurer registers a template loader for this package, allowing to
* reference the "spring.ftl" macro library (contained in this package and thus
* in spring.jar) like this:
* reference the "spring.ftl" macro library contained in this package:
*
* <pre class="code">
* &lt;#import "/spring.ftl" as spring/&gt;

View File

@@ -70,8 +70,9 @@ import org.springframework.web.servlet.view.AbstractTemplateView;
*
* <p>Depends on a single {@link FreeMarkerConfig} object such as {@link FreeMarkerConfigurer}
* being accessible in the current web application context, with any bean name.
* Alternatively, you can set the FreeMarker {@link Configuration} object as bean property.
* See {@link #setConfiguration} for more details on the impacts of this approach.
* Alternatively, you can set the FreeMarker {@link Configuration} object as a
* bean property. See {@link #setConfiguration} for more details on the impacts
* of this approach.
*
* <p>Note: Spring's FreeMarker support requires FreeMarker 2.3 or higher.
*

View File

@@ -11,7 +11,7 @@
* FreeMarkerConfigurer.
*
* To take advantage of these macros, the "exposeSpringMacroHelpers" property
* of the FreeMarker class needs to be set to "true". This will expose a
* of the FreeMarkerView class needs to be set to "true". This will expose a
* RequestContext under the name "springMacroRequestContext", as needed by
* the macros in this library.
*