feat:(1.2.0-beta2): 修复编译失败
This commit is contained in:
parent
3bd2c2963d
commit
5ca1806bbf
@ -1,10 +1,7 @@
|
|||||||
package com.aizuda.snailjob.common.log;
|
package com.aizuda.snailjob.common.log;
|
||||||
|
|
||||||
import com.aizuda.snailjob.common.log.factory.GlobalLogFactory;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
import org.springframework.context.annotation.ComponentScan;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.core.env.Environment;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author: xiaowoniu
|
* @author: xiaowoniu
|
||||||
@ -14,10 +11,4 @@ import org.springframework.core.env.Environment;
|
|||||||
@Configuration
|
@Configuration
|
||||||
@ComponentScan("com.aizuda.snailjob.common.log.*")
|
@ComponentScan("com.aizuda.snailjob.common.log.*")
|
||||||
public class CommonLogConfigure {
|
public class CommonLogConfigure {
|
||||||
|
|
||||||
@Autowired
|
|
||||||
public void setEnvironment(Environment environment) {
|
|
||||||
GlobalLogFactory.setEnvironment(environment);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user