public class BeetlGroupUtilConfiguration extends AbstractGroupTemplateConfig implements org.springframework.web.context.ServletContextAware
<bean id="beetlConfig" class="org.beetl.ext.spring.BeetlGroupUtilConfiguration" init-method="init" > </bean > <bean id="viewResolver" class="org.beetl.ext.spring.BeetlSpringViewResolver"> <property name="contentType" value="text/html;charset=UTF-8"></property> </bean>beetl 在spring mvc 中的配置 用户继承此类,并实现 initOther方法,以注册自己的函数,标签等
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.springframework.core.io.Resource |
configFileResource
配置文件地址
|
protected Properties |
configProperties
配置属性
|
protected ErrorHandler |
errorHandler
异常处理器
|
protected GroupTemplate |
groupTemplate |
protected ResourceLoader |
resourceLoader
Beetl资源加载器,如果未指定,会自动依据ApplicationContext和配置文件识别
|
protected String |
root |
protected Map<String,Object> |
sharedVars
共享变量
|
protected String |
webPath |
| 构造器和说明 |
|---|
BeetlGroupUtilConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
GroupTemplate |
getGroupTemplate() |
void |
init() |
protected void |
initOther() |
void |
setConfigFileResource(org.springframework.core.io.Resource configFileResource)
配置文件地址
|
void |
setConfigProperties(Properties configProperties)
配置属性
|
void |
setErrorHandler(ErrorHandler errorHandler)
异常处理器
|
void |
setResourceLoader(ResourceLoader resourceLoader)
Beetl资源加载器,如果未指定,会自动依据ApplicationContext和配置文件识别
|
void |
setRoot(String root) |
void |
setServletContext(javax.servlet.ServletContext sc) |
void |
setSharedVars(Map<String,Object> sharedVars)
共享参数
|
config, setFormats, setFunctionPackages, setFunctions, setTagFactorys, setTypeFormats, setVirtualAttributeEvals, setVirtualClassAttributesprotected GroupTemplate groupTemplate
protected String root
protected String webPath
protected Properties configProperties
protected org.springframework.core.io.Resource configFileResource
protected ResourceLoader resourceLoader
protected ErrorHandler errorHandler
public void init()
public void setConfigProperties(Properties configProperties)
public void setConfigFileResource(org.springframework.core.io.Resource configFileResource)
public void setResourceLoader(ResourceLoader resourceLoader)
public void setErrorHandler(ErrorHandler errorHandler)
public void setServletContext(javax.servlet.ServletContext sc)
setServletContext 在接口中 org.springframework.web.context.ServletContextAwareprotected void initOther()
public GroupTemplate getGroupTemplate()
public void setRoot(String root)
Copyright © 2022. All rights reserved.