스프링

 

 

 

Grop Id : com.infotech.app

Artifact id : HelloWorldSpringBoot

Version : 0.0.1-SNAPSHOT
 

 

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.infotech.app</groupId>
	<artifactId>HelloWorldSpringBoot</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	
	<properties>
		<java.version>1.8</java.version>
	</properties>
	
	
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>1.5.4.RELEASE</version>
	</parent>
	

	
	<dependencies>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
	</dependencies>
	
</project>

 

 

 

 

HelloWorldSpringApp

 

package com.infotech.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class HelloWorldSpringApp {
	
	public static void main(String[] args) {
		SpringApplication.run(HelloWorldSpringApp.class, args);
	}
}

 

 

 

HelloWorldController

package com.infotech.app.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloWorldController {

	@RequestMapping(value="/")
	public String hello() {
		return "Hello World!!";
	}
	

	
}

 

 

 

 

 

강좌

https://www.youtube.com/playlist?list=PLzS3AYzXBoj8UcLsBN3UXd7Nf1T4ZyJa0

 

소스

https://github.com/braverokmc79/Spring-Boot-Tutorial

 

 

 

 

 

about author

PHRASE

Level 60  라이트

내게 능력주시는 자 안에서 내가 모든 것을 할 수 있느니라.

댓글 ( 0)

댓글 남기기

작성