1. 统一包名修改
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.zt.plat.mes;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
|
||||
/**
|
||||
* Mes 服务器的启动类
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${cloud.info.base-package}
|
||||
@EnableFeignClients(basePackages = {"${cloud.info.base-package}.mes", "${cloud.info.base-package}.module"})
|
||||
@SpringBootApplication(scanBasePackages = {"${cloud.info.base-package}.mes", "${cloud.info.base-package}.module"},
|
||||
excludeName = {})
|
||||
public class MesServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MesServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.mes.controller.mes;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
/**
|
||||
* mes 控制器
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@Tag(name = "mes")
|
||||
@RestController
|
||||
@RequestMapping("/mes")
|
||||
public class MesController {
|
||||
|
||||
@GetMapping("/hello")
|
||||
@Operation(summary = "Hello mes")
|
||||
public CommonResult<String> hello() {
|
||||
return success("Hello, mes!");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user