程序包 config.spring
类 ApplicationConfig
java.lang.Object
config.spring.ApplicationConfig
- 所有已实现的接口:
org.springframework.beans.factory.Aware
,org.springframework.context.EnvironmentAware
@Configuration
@ComponentScan(basePackages="com.publiccms",
excludeFilters=)
@MapperScan(basePackages="com.publiccms.logic.mapper")
@PropertySource("classpath:cms.properties")
@EnableTransactionManagement
@EnableScheduling
public class ApplicationConfig
extends Object
implements org.springframework.context.EnvironmentAware
Spring配置类
Spring Configuration Class
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明缓存工厂数据源指令组件org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer
FreeMarker配置工厂private String
getDirPath
(String path) org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory>
hibernateSessionFactory
(DataSource dataSource) Hibernate 会话工厂类org.springframework.orm.hibernate5.HibernateTransactionManager
hibernateTransactionManager
(org.hibernate.SessionFactory sessionFactory) Hibernate 事务管理idWorker()
序列生成器org.springframework.context.MessageSource
messageSource
(MenuMessageComponent menuMessageComponent) 国际化处理org.springframework.web.multipart.support.StandardServletMultipartResolver
文件上传解决方案org.mybatis.spring.SqlSessionFactoryBean
mybatisSqlSessionFactoryBean
(DataSource dataSource) Mybatis会话工厂org.springframework.scheduling.quartz.SchedulerFactoryBean
任务计划工厂void
setEnvironment
(org.springframework.core.env.Environment environment) 站点组件jakarta.validation.ValidatorFactory
验证工厂
-
字段详细资料
-
env
private org.springframework.core.env.Environment env
-
-
构造器详细资料
-
ApplicationConfig
public ApplicationConfig()
-
-
方法详细资料
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - 指定者:
setEnvironment
在接口中org.springframework.context.EnvironmentAware
-
idWorker
序列生成器- 返回:
- idWorker
-
dataSource
数据源- 返回:
- datasource
-
hibernateTransactionManager
@Bean public org.springframework.orm.hibernate5.HibernateTransactionManager hibernateTransactionManager(org.hibernate.SessionFactory sessionFactory) Hibernate 事务管理- 参数:
sessionFactory
-- 返回:
- hibernate transaction manager
-
mybatisSqlSessionFactoryBean
@Bean public org.mybatis.spring.SqlSessionFactoryBean mybatisSqlSessionFactoryBean(DataSource dataSource) throws IOException Mybatis会话工厂- 参数:
dataSource
-- 返回:
- mybatis session factory
- 抛出:
IOException
-
hibernateSessionFactory
@Bean public org.springframework.beans.factory.FactoryBean<org.hibernate.SessionFactory> hibernateSessionFactory(DataSource dataSource) throws IOException Hibernate 会话工厂类- 参数:
dataSource
-- 返回:
- hibernate session factory
- 抛出:
IOException
-
validatorFactoryBean
@Bean public jakarta.validation.ValidatorFactory validatorFactoryBean()验证工厂- 返回:
- cache factory
-
cacheEntityFactory
缓存工厂- 返回:
- cache factory
- 抛出:
IOException
-
messageSource
@Bean public org.springframework.context.MessageSource messageSource(MenuMessageComponent menuMessageComponent) 国际化处理- 参数:
menuMessageComponent
-- 返回:
- message source
-
directiveComponent
指令组件- 返回:
- directive component
-
siteComponent
站点组件- 返回:
- site component
-
freeMarkerConfigurer
@Bean public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer() throws IOExceptionFreeMarker配置工厂- 返回:
- freemarker configuration factory
- 抛出:
IOException
-
scheduler
@Bean public org.springframework.scheduling.quartz.SchedulerFactoryBean scheduler()任务计划工厂- 返回:
- task scheduler factory
-
multipartResolver
@Bean public org.springframework.web.multipart.support.StandardServletMultipartResolver multipartResolver()文件上传解决方案- 返回:
- file upload resolver
-
getMap
- 参数:
property
-- 返回:
- the map
-
getDirPath
- 参数:
path
-- 返回:
- the cms data path
-