diff --git a/src/main/java/cokr/xit/foundation/boot/CommonConfig.java b/src/main/java/cokr/xit/foundation/boot/CommonConfig.java index 7432a10..ee07577 100644 --- a/src/main/java/cokr/xit/foundation/boot/CommonConfig.java +++ b/src/main/java/cokr/xit/foundation/boot/CommonConfig.java @@ -8,7 +8,6 @@ import java.util.stream.Collectors; import org.egovframe.rte.fdl.cmmn.trace.LeaveaTrace; import org.egovframe.rte.fdl.property.impl.EgovPropertyServiceImpl; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; @@ -25,8 +24,11 @@ import com.fasterxml.jackson.databind.ObjectMapper; @Configuration @ComponentScan(basePackages = "cokr.xit") public class CommonConfig { - @Autowired - Environment env; + final Environment env; + + public CommonConfig(Environment env) { + this.env = env; + } /**AntPathMatcher를 반환한다. * @return AntPathMatcher