Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- public class LoginController {
- @RequestMapping(value = "/submit", method = RequestMethod.POST)
- public String check()
- {
- System.out.println("dghad");
- return "hello";
- }
- }
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Login</title>
- </head>
- <body>
- <form method="post" action="submit">
- Username : <input type="text" name="username"> <br> <br>
- Password : <input type="text" name="password" /> <br> <br>
- <input type="submit" value="Submit" />
- </form>
- @SpringBootApplication
- public class Application extends SpringBootServletInitializer{
- public static void main(String[] args) {
- System.out.println("in main");
- SpringApplication.run(Application.class, args);
- }
- @Override
- protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
- // TODO Auto-generated method stub
- return super.configure(builder);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement