freemarker属性配置

对着背影说爱祢 提交于 2019-12-10 12:27:09

freemarker属性配置

freemarker属性配置:

spring.freemarker.allow-request-override=false # 设置是否允许HttpServletRequest属性重写(隐藏)控制器生成的同名模型属性。
spring.freemarker.allow-session-override=false # 设置是否允许HttpSession属性重写(隐藏)控制器生成的同名模型属性。
spring.freemarker.cache=false # 启用模板缓存。
spring.freemarker.charset=UTF-8
spring.freemarker.check-template-location=true # Check that the templates location exists.
spring.freemarker.content-type=text/html # Content-Type value.
spring.freemarker.enabled=true # Enable MVC view resolution for this technology. 为此技术启用MVC视图解析。
spring.freemarker.expose-request-attributes=false # 设置是否应在与模板合并之前将所有请求属性添加到模型中。
spring.freemarker.expose-session-attributes=false # 设置是否应在与模板合并之前将所有HttpSession属性添加到模型中。
spring.freemarker.expose-spring-macro-helpers=true # 设置是否公开名为“Spring macro RequestContext”的RequestContext供Spring的宏库使用.
spring.freemarker.prefer-file-system-access=true # Prefer file system access for template loading. File system access enables hot detection of template changes.
spring.freemarker.prefix= # Prefix that gets prepended to view names when building a URL.
spring.freemarker.request-context-attribute= # Name of the RequestContext attribute for all views.
spring.freemarker.settings.*= # Well-known FreeMarker keys which will be passed to FreeMarker's Configuration.
spring.freemarker.suffix= # Suffix that gets appended to view names when building a URL.
spring.freemarker.template-loader-path=classpath:/templates/ # Comma-separated list of template paths.
spring.freemarker.view-names= # White list of view names that can be resolved.

freemarker属性配置:

spring.freemarker.allow-request-override=false # 设置是否允许HttpServletRequest属性重写(隐藏)控制器生成的同名模型属性。
spring.freemarker.allow-session-override=false # 设置是否允许HttpSession属性重写(隐藏)控制器生成的同名模型属性。
spring.freemarker.cache=false # 启用模板缓存。
spring.freemarker.charset=UTF-8
spring.freemarker.check-template-location=true # Check that the templates location exists.
spring.freemarker.content-type=text/html # Content-Type value.
spring.freemarker.enabled=true # Enable MVC view resolution for this technology. 为此技术启用MVC视图解析。
spring.freemarker.expose-request-attributes=false # 设置是否应在与模板合并之前将所有请求属性添加到模型中。
spring.freemarker.expose-session-attributes=false # 设置是否应在与模板合并之前将所有HttpSession属性添加到模型中。
spring.freemarker.expose-spring-macro-helpers=true # 设置是否公开名为“Spring macro RequestContext”的RequestContext供Spring的宏库使用.
spring.freemarker.prefer-file-system-access=true # Prefer file system access for template loading. File system access enables hot detection of template changes.
spring.freemarker.prefix= # Prefix that gets prepended to view names when building a URL.
spring.freemarker.request-context-attribute= # Name of the RequestContext attribute for all views.
spring.freemarker.settings.*= # Well-known FreeMarker keys which will be passed to FreeMarker's Configuration.
spring.freemarker.suffix= # Suffix that gets appended to view names when building a URL.
spring.freemarker.template-loader-path=classpath:/templates/ # Comma-separated list of template paths.
spring.freemarker.view-names= # White list of view names that can be resolved.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!