Github as Syntax Highlighter for Blogs
Step 1: Create a public Gist at gist.github.com
Step 2: Embed your Gist : click the show embed link and copy-paste the script into your blog
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 org.sample.springsecurity.controller; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
@Controller | |
public class LoginController { | |
@RequestMapping(value = "/logoutPage", method = RequestMethod.GET) | |
public String logoutPage() { | |
return "logout"; | |
} | |
@RequestMapping(value = "/loginPage", method = RequestMethod.GET) | |
public String loginPage() { | |
return "login"; | |
} | |
} |
No comments:
Post a Comment