idea登录页面ajax验证,IDEA如何实现登录注册页面 IDEA实现登录注册页面代码示例…

  • Post author:
  • Post category:其他


IDEA如何实现登录注册页面?本篇文章小编给大家分享一下IDEA实现登录注册页面代码示例,文章代码介绍的很详细,小编觉得挺不错的,现在分享给大家供大家参考,有需要的小伙伴们可以来看看。

application.yml

spring:

datasource:

username: root

password: 123456

url: jdbc:mysql://localhost:3306/bd1906?serverTimezone=GMT%2B8

driver-class-name: com.mysql.cj.jdbc.Driver

server:

port: 8080

Controller层

@Controller

public class loginController {

@Autowired

private JdbcTemplate jdbcTemplate;

@RequestMapping(“/index”)

public String border(){

return “/index.html”;

}

@RequestMapping(“/login”)

public String getUserFront(){

return “/login.html”;

}

@RequestMapping(value = “/log”,method = RequestMethod.POST)

@ResponseBod