|
|
@ -1,7 +1,5 @@
|
|
|
|
package cn.hippo4j.config.config;
|
|
|
|
package cn.hippo4j.config.config;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hippo4j.common.api.JsonFacade;
|
|
|
|
|
|
|
|
import cn.hippo4j.common.api.impl.JacksonHandler;
|
|
|
|
|
|
|
|
import cn.hippo4j.common.config.ApplicationContextHolder;
|
|
|
|
import cn.hippo4j.common.config.ApplicationContextHolder;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
@ -19,11 +17,6 @@ import static cn.hippo4j.common.constant.Constants.AVAILABLE_PROCESSORS;
|
|
|
|
@Configuration
|
|
|
|
@Configuration
|
|
|
|
public class CommonConfig {
|
|
|
|
public class CommonConfig {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
|
|
|
public JsonFacade jacksonHandler() {
|
|
|
|
|
|
|
|
return new JacksonHandler();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public ApplicationContextHolder simpleApplicationContextHolder() {
|
|
|
|
public ApplicationContextHolder simpleApplicationContextHolder() {
|
|
|
|
return new ApplicationContextHolder();
|
|
|
|
return new ApplicationContextHolder();
|
|
|
|