1. 新增业务模块
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package cn.iocoder.yudao.template;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
/**
|
||||
* Template 服务器的启动类
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${yudao.info.base-package}
|
||||
@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.template", "${yudao.info.base-package}.module"},
|
||||
excludeName = {})
|
||||
public class TemplateServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(TemplateServerApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.iocoder.yudao.template.controller.template;
|
||||
|
||||
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 cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
/**
|
||||
* template 控制器
|
||||
*
|
||||
* @author ZT
|
||||
*/
|
||||
@Tag(name = "template")
|
||||
@RestController
|
||||
@RequestMapping("/template")
|
||||
public class TemplateController {
|
||||
|
||||
@GetMapping("/hello")
|
||||
@Operation(summary = "Hello template")
|
||||
public CommonResult<String> hello() {
|
||||
return success("Hello, template!");
|
||||
}
|
||||
|
||||
}
|
||||
118
template-server/src/main/resources/application-dev.yml
Normal file
118
template-server/src/main/resources/application-dev.yml
Normal file
File diff suppressed because it is too large
Load Diff
119
template-server/src/main/resources/application-local.yml
Normal file
119
template-server/src/main/resources/application-local.yml
Normal file
File diff suppressed because it is too large
Load Diff
109
template-server/src/main/resources/application.yml
Normal file
109
template-server/src/main/resources/application.yml
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user