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
- WM_CONCAT
- 초기데이터
- New Project
- Jackson
- 구동하기
- Marshalling
- filed
- 카멜룰
- javascripts
- mput
- camel rule
- BiffException
- 유용한사용법
- eclipse pliugin
- window7
- JExcel
- 유용한 코드
- XMLAGG
- arguements
- plan_table
- json
- 호출
- 유용한 표현
- unmashalling
- 로우병합
- spring boot
- 인수배열
- TypeReference
- put
- svn ignore
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