mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
feat(maven-cw-elevator): 增加 starter 模块与可执行发布包
- 新增 cw-elevator-application-starter:repackage 产出 cw-elevator-application-2.0.0.jar - ElevatorApplication:Feign、MapperScan、Async、Cache、AOP、EnableCloudwalkEvent - 父 POM 引入 Spring Cloud Greenwich.SR6 BOM;service 使用 spring-cloud-starter-openfeign - 主类 Start-Class: cn.cloudwalk.elevator.ElevatorApplication Made-with: Cursor Former-commit-id: 2b89dcb5aab7c0f29a1068fc9839de99670f2789
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
package cn.cloudwalk.elevator;
|
||||
|
||||
import cn.cloudwalk.event.EnableCloudwalkEvent;
|
||||
import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cache.annotation.EnableCaching;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
@EnableCloudwalkEvent
|
||||
@EnableAsync
|
||||
@EnableCaching
|
||||
@EnableAspectJAutoProxy(exposeProxy = true)
|
||||
@EnableFeignClients(basePackages = "cn.cloudwalk.elevator")
|
||||
@MapperScan("cn.cloudwalk.elevator")
|
||||
@SpringBootApplication(exclude = {PageHelperAutoConfiguration.class})
|
||||
public class ElevatorApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(ElevatorApplication.class, args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user