All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.notice.adapter.NoticeModule Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.notice.adapter;

import com.github.rexsheng.springboot.faster.system.modular.SpringModule;
import com.github.rexsheng.springboot.faster.system.notice.application.NoticeServiceImpl;
import com.github.rexsheng.springboot.faster.system.notice.infrastructure.NoticeGatewayImpl;

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.notice",name = "enabled",havingValue = "true",matchIfMissing = false)
@Import({
        NoticeController.class,
        NoticeSSE.class,
        NoticeServiceImpl.class,
        NoticeGatewayImpl.class,
        NoticeListener.class,
        NoticeEventListener.class,
        NoticeFileConfig.class
})
@SpringModule
public class NoticeModule implements InitializingBean {

    private static final Logger logger= LoggerFactory.getLogger(NoticeModule.class);

    @Override
    public void afterPropertiesSet() throws Exception {
        logger.info("已启动模块: {}", "Notice");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy