程序包 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
  • 字段详细资料

    • 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

      @Bean public IdWorker idWorker()
      序列生成器
      返回:
      idWorker
    • dataSource

      @Bean public DataSource 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

      @Bean public CacheEntityFactory cacheEntityFactory() throws IOException
      缓存工厂
      返回:
      cache factory
      抛出:
      IOException
    • messageSource

      @Bean public org.springframework.context.MessageSource messageSource(MenuMessageComponent menuMessageComponent)
      国际化处理
      参数:
      menuMessageComponent -
      返回:
      message source
    • directiveComponent

      @Bean public DirectiveComponent directiveComponent()
      指令组件
      返回:
      directive component
    • siteComponent

      @Bean public SiteComponent siteComponent()
      站点组件
      返回:
      site component
    • freeMarkerConfigurer

      @Bean public org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer freeMarkerConfigurer() throws IOException
      FreeMarker配置工厂
      返回:
      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

      private Map<String,String> getMap(String property)
      参数:
      property -
      返回:
      the map
    • getDirPath

      private String getDirPath(String path)
      参数:
      path -
      返回:
      the cms data path