初始化仓库
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.studybehavior.studybehavior;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class StudybehaviorApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(StudybehaviorApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.studybehavior.studybehavior.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/test")
|
||||
public class StudyController {
|
||||
@GetMapping("/list")
|
||||
public String test(){
|
||||
return "test";
|
||||
}
|
||||
|
||||
}
|
||||
11
src/main/resources/application-dev.yml
Normal file
11
src/main/resources/application-dev.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
# Tomcat
|
||||
server:
|
||||
port: 9401
|
||||
|
||||
spring:
|
||||
application:
|
||||
# 应用名称
|
||||
name: studybehavior
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: dev
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.studybehavior.studybehavior;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class StudybehaviorApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user