AspectWebConfiguration.java 706 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.kmall.admin.cuspay.config;
  2. import com.fasterxml.jackson.databind.ObjectMapper;
  3. import com.kmall.admin.cuspay.aop.AspectWebLog;
  4. import com.kmall.admin.cuspay.aop.AspectWebLog;
  5. import org.springframework.context.annotation.Bean;
  6. import org.springframework.context.annotation.Configuration;
  7. /**
  8. * @author Scott Chen
  9. * @version 1.0
  10. * 2017-10-23 02:27
  11. */
  12. @Configuration
  13. public class AspectWebConfiguration {
  14. /**
  15. * 日志处理
  16. * @return
  17. */
  18. @Bean
  19. public static AspectWebLog webLogAspect() {
  20. return new AspectWebLog();
  21. }
  22. /**
  23. *
  24. * @return
  25. */
  26. @Bean
  27. public ObjectMapper objectMapper() {
  28. return new ObjectMapper();
  29. }
  30. }