File tree Expand file tree Collapse file tree 5 files changed +56
-0
lines changed
java/cn/iocoder/springboot/lab39/skywalkingdemo Expand file tree Collapse file tree 5 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5+ <parent >
6+ <groupId >org.springframework.boot</groupId >
7+ <artifactId >spring-boot-starter-parent</artifactId >
8+ <version >2.2.2.RELEASE</version >
9+ <relativePath /> <!-- lookup parent from repository -->
10+ </parent >
11+ <modelVersion >4.0.0</modelVersion >
12+ <packaging >jar</packaging >
13+
14+ <artifactId >lab-39-springmvc</artifactId >
15+
16+ <dependencies >
17+ <!-- 实现对 SpringMVC 的自动化配置 -->
18+ <dependency >
19+ <groupId >org.springframework.boot</groupId >
20+ <artifactId >spring-boot-starter-web</artifactId >
21+ </dependency >
22+ </dependencies >
23+
24+ </project >
Original file line number Diff line number Diff line change 1+ package cn .iocoder .springboot .lab39 .skywalkingdemo ;
2+
3+ import org .springframework .boot .SpringApplication ;
4+ import org .springframework .boot .autoconfigure .SpringBootApplication ;
5+
6+ @ SpringBootApplication
7+ public class Application {
8+
9+ public static void main (String [] args ) {
10+ SpringApplication .run (Application .class , args );
11+ }
12+
13+ }
Original file line number Diff line number Diff line change 1+ package cn .iocoder .springboot .lab39 .skywalkingdemo .controller ;
2+
3+ import org .springframework .web .bind .annotation .GetMapping ;
4+ import org .springframework .web .bind .annotation .RequestMapping ;
5+ import org .springframework .web .bind .annotation .RestController ;
6+
7+ @ RestController
8+ @ RequestMapping ("/demo" )
9+ public class DemoController {
10+
11+ @ GetMapping ("/echo" )
12+ public String echo () {
13+ return "echo" ;
14+ }
15+
16+ }
Original file line number Diff line number Diff line change 1+ server :
2+ port : 8079
Original file line number Diff line number Diff line change 1313 <packaging >pom</packaging >
1414 <modules >
1515 <module >lab-39-demo</module >
16+ <module >lab-39-springmvc</module >
1617 </modules >
1718
1819</project >
You can’t perform that action at this time.
0 commit comments