19a7c5706de279366fbed49c7ca482af2517a102.svn-base 812 B

12345678910111213141516171819202122232425262728
  1. package org.jeecg.config;
  2. import org.jeecgframework.core.util.ApplicationContextUtil;
  3. import org.springframework.context.annotation.Bean;
  4. import org.springframework.context.annotation.Configuration;
  5. /**
  6. * @Author: Scott
  7. * @Date: 2018/2/7
  8. * @description: autopoi 配置类
  9. */
  10. @Configuration
  11. public class AutoPoiConfig {
  12. /**
  13. * excel注解字典参数支持(导入导出字典值,自动翻译)
  14. * 举例: @Excel(name = "性别", width = 15, dicCode = "sex")
  15. * 1、导出的时候会根据字典配置,把值1,2翻译成:男、女;
  16. * 2、导入的时候,会把男、女翻译成1,2存进数据库;
  17. * @return
  18. */
  19. @Bean
  20. public ApplicationContextUtil applicationContextUtil() {
  21. return new org.jeecgframework.core.util.ApplicationContextUtil();
  22. }
  23. }