com.github.rexsheng.springboot.faster.system.dept.adapter.DeptModule Maven / Gradle / Ivy
The newest version!
package com.github.rexsheng.springboot.faster.system.dept.adapter;
import com.github.rexsheng.springboot.faster.system.dept.application.DeptServiceImpl;
import com.github.rexsheng.springboot.faster.system.dept.infrastructure.DeptGatewayImpl;
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({
DeptController.class,
DeptServiceImpl.class,
DeptGatewayImpl.class,
DeptEventListener.class
})
@SpringModule
public class DeptModule implements InitializingBean {
private static final Logger logger= LoggerFactory.getLogger(DeptModule.class);
@Override
public void afterPropertiesSet() throws Exception {
logger.info("已启动模块: {}", "Management Dept");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy