com.github.rexsheng.springboot.faster.system.log.adapter.LogModule Maven / Gradle / Ivy
The newest version!
package com.github.rexsheng.springboot.faster.system.log.adapter;
import com.github.rexsheng.springboot.faster.system.log.application.LogServiceImpl;
import com.github.rexsheng.springboot.faster.system.log.infrastructure.LogGatewayImpl;
import com.github.rexsheng.springboot.faster.system.modular.SpringModule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Import;
@ConditionalOnProperty(prefix = "app.module.management",name = "enabled",havingValue = "true",matchIfMissing = false)
@Import({
LogConfig.class,
LogController.class,
LogServiceImpl.class,
LogGatewayImpl.class
})
@SpringModule
public class LogModule implements InitializingBean {
private static final Logger logger= LoggerFactory.getLogger(LogModule.class);
@Override
public void afterPropertiesSet() throws Exception {
logger.info("已启动模块: {}", "Management Log");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy