Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 인수배열
- 호출
- camel rule
- Jackson
- 유용한사용법
- 초기데이터
- JExcel
- New Project
- BiffException
- Marshalling
- 로우병합
- plan_table
- WM_CONCAT
- unmashalling
- 유용한 코드
- eclipse pliugin
- svn ignore
- put
- 카멜룰
- window7
- filed
- 유용한 표현
- mput
- javascripts
- XMLAGG
- arguements
- 구동하기
- json
- TypeReference
- spring boot
Archives
- Today
- Total
하루에 한가지
spring boot - web 프로젝트 본문
pom.xml 에 추가
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
재기동을 하면
Tomcat initialized with port 8080 (http)
Starting service [Tomcat]
Starting Servlet engine: [Apache Tomcat/10.1.18]
Initializing Spring embedded WebApplicationContext
Root WebApplicationContext: initialization completed in 673 ms
Tomcat started on port 8080 (http) with context path ''
8080 포트로 서버가 올라 간 것을 확인할 수 있다.
controller를 하나 달고
package com.urbug2.web.sample.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SampleController {
@RequestMapping("/sample/")
public String hello() {
return "Hello world";
}
}
호출해 보면 정상 호출되는 것을 확인
Comments