Advertisement
Guest User

Untitled

a guest
Dec 12th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. @RestController
  2. public class LoginController {
  3.  
  4. @RequestMapping(value = "/submit", method = RequestMethod.POST)
  5. public String check()
  6. {
  7. System.out.println("dghad");
  8. return "hello";
  9.  
  10.  
  11. }
  12. }
  13.  
  14. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  15. pageEncoding="ISO-8859-1"%>
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  17. <html>
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  20. <title>Login</title>
  21. </head>
  22. <body>
  23. <form method="post" action="submit">
  24. Username : <input type="text" name="username"> <br> <br>
  25. Password : <input type="text" name="password" /> <br> <br>
  26. <input type="submit" value="Submit" />
  27. </form>
  28.  
  29. @SpringBootApplication
  30. public class Application extends SpringBootServletInitializer{
  31.  
  32. public static void main(String[] args) {
  33. System.out.println("in main");
  34. SpringApplication.run(Application.class, args);
  35. }
  36.  
  37. @Override
  38. protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
  39. // TODO Auto-generated method stub
  40. return super.configure(builder);
  41. }
  42.  
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement