模块新增

This commit is contained in:
2025-12-04 16:45:56 +08:00
parent 9cb4844be4
commit b3200f8858
25 changed files with 562 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
package org.xyzh.message;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@EnableDubbo // 启用 Dubbo 服务
@ComponentScan(basePackages = {
"org.xyzh.message", // 当前message模块
"org.xyzh.common" // 公共模块
})
public class MessageApp {
private static final Logger logger = LoggerFactory.getLogger(MessageApp.class);
public static void main(String[] args) {
logger.info("======================== MessageApp 启动中 =========================");
SpringApplication.run(MessageApp.class, args);
logger.info("======================== MessageApp 启动成功 =========================");
}
}