一、项目介绍
二、数据库环境搭建:
三、前后端联调
问题:前端发送请求地址与后端接口地址不匹配,是如何实现登录功能的?
原因:nginx反向代理
nginx反向代理配置方式:
nginx负载均衡配置方式:
四、完善登录功能(密码加密)
import org.springframework.util.DigestUtils;
public class Test {
@org.junit.jupiter.api.Test
public void fuck(){
String s="123456";
byte[] bytes = s.getBytes();
String s1 = DigestUtils.md5DigestAsHex(bytes);
System.out.println(s1);
//e10adc3949ba59abbe56e057f20f883e
}
}