1234567891011121314151617181920212223242526272829303132333435 |
- package com.kmall.admin.cuspay.config;
- import com.fasterxml.jackson.databind.ObjectMapper;
- import com.kmall.admin.cuspay.aop.AspectWebLog;
- import com.kmall.admin.cuspay.aop.AspectWebLog;
- import org.springframework.context.annotation.Bean;
- import org.springframework.context.annotation.Configuration;
- /**
- * @author Scott Chen
- * @version 1.0
- * 2017-10-23 02:27
- */
- @Configuration
- public class AspectWebConfiguration {
- /**
- * 日志处理
- * @return
- */
- @Bean
- public static AspectWebLog webLogAspect() {
- return new AspectWebLog();
- }
- /**
- *
- * @return
- */
- @Bean
- public ObjectMapper objectMapper() {
- return new ObjectMapper();
- }
- }
|