Skip to content

Instantly share code, notes, and snippets.

@andreybleme
Created April 1, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreybleme/666dd65233111c24b3d6bc6fe9c7a993 to your computer and use it in GitHub Desktop.
Save andreybleme/666dd65233111c24b3d6bc6fe9c7a993 to your computer and use it in GitHub Desktop.
andreybleme.com | JWT com Springboot
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