Created
April 1, 2017 15:14
-
-
Save andreybleme/666dd65233111c24b3d6bc6fe9c7a993 to your computer and use it in GitHub Desktop.
andreybleme.com | JWT com Springboot
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 com.jwtme; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
@SpringBootApplication | |
@RestController | |
@EnableAutoConfiguration | |
public class JwtmeApplication { | |
public static void main(String[] args) { | |
SpringApplication.run(JwtmeApplication.class, args); | |
} | |
@RequestMapping("/home") | |
public String hello() { | |
return "Hello buddy!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment