标签:springboot freemarker spring .# 详解 template attributes 模板
#配置freemarker详解
#spring.freemarker.allow-request-override=false # Set whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name.
#设置是否允许HttpServletRequest属性覆盖(隐藏)控制器生成的同名模型属性。
#spring.freemarker.allow-session-override=false # Set whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name.
#设置是否允许HttpSession属性覆盖(隐藏)控制器生成的同名模型属性。
#spring.freemarker.cache=false # Enable template caching.
#启用模板缓存。
#spring.freemarker.charset=UTF-8 # Template encoding.
#设置编码格式
#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 # Set whether all request attributes should be added to the model prior to merging with the template.
#设置是否应该在与模板合并之前将所有请求属性添加到模型中。
#spring.freemarker.expose-session-attributes=false # Set whether all HttpSession attributes should be added to the model prior to merging with the template.
#设置是否在与模板合并之前将所有HttpSession属性添加到模型中。
#spring.freemarker.expose-spring-macro-helpers=true # Set whether to expose a RequestContext for use by Spring's macro library, under the name "springMacroRequestContext".
#设置是否公开RequestContext供Spring宏库使用,名称为“SpringMacroRequestContext”。
#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.
#前缀,用于在构建URL时查看名称
#spring.freemarker.request-context-attribute= # Name of the RequestContext attribute for all views.
#所有视图的RequestContext属性的名称。
#spring.freemarker.settings.*= # Well-known FreeMarker keys which will be passed to FreeMarker's Configuration.
#众所周知的FreeMarker密钥将传递给FreeMarker的配置。
#spring.freemarker.suffix= # Suffix that gets appended to view names when building a URL.
#后缀,该后缀用于在构建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.
#可以解析的视图名称的白列表。
标签:springboot,freemarker,spring,.#,详解,template,attributes,模板 来源: https://www.cnblogs.com/chbin/p/10635648.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。