Move intro inside main src (#1037)

* Initial commit

* Initial commit

* deleted old files

* classNotFoundException-contextLoaderListener

* Spring Boot Application

* delete ClassNotFoundException

* Add intro package inside main source tree
This commit is contained in:
Jesus Boadas
2017-01-24 04:42:09 -04:00
committed by Grzegorz Piwowarek
parent 673faede4c
commit e4bc0a44ce
4 changed files with 78 additions and 0 deletions
@@ -0,0 +1,13 @@
package com.baeldung.intro;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class App
{
public static void main( String[] args )
{
SpringApplication.run(App.class, args);
}
}
@@ -0,0 +1,18 @@
package com.baeldung.intro.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HomeController {
@RequestMapping("/")
public String root(){
return "Index Page";
}
@RequestMapping("/local")
public String local(){
return "/local";
}
}
@@ -0,0 +1,8 @@
<html>
<head>
<title>RESOURCE NOT FOUND</title>
</head>
<body>
<h1>404 RESOURCE NOT FOUND</h1>
</body>
</html>