Created
August 1, 2014 05:44
-
-
Save mike-neck/a743044206f17b9f0305 to your computer and use it in GitHub Desktop.
first application using spring-boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package spring.boot.learning; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
/** | |
* Copyright 2014Shinya Mochida | |
* <p/> | |
* Licensed under the Apache License,Version2.0(the"License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* <p/> | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* <p/> | |
* Unless required by applicable law or agreed to in writing,software | |
* Distributed under the License is distributed on an"AS IS"BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
@RestController | |
@EnableAutoConfiguration | |
public class App { | |
@RequestMapping("/") | |
public String home() { | |
return "Hello World"; | |
} | |
public static void main(String[] args) { | |
SpringApplication.run(App.class, args); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment