- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 SpringSecurity[04]:前后端分离改造
1、创建Http约束类public interface HttpStatus { int SUCCESS = 0; int NOT_LOGIN = 1001; int NOT_REGISTER = 1002; int PASSWORD_ERROR = 1003; int FORBIDDEN = 1004; int EXCEPTION = 1005; int AUTH_FAIL = 1006; String SUCCESS_MSG = "su
2022-05-04 23:28:04
279
原创 SpringSecurity[03]:自定义账号验证
1、实现UserDetails接口User.javaimport org.springframework.security.core.GrantedAuthority;import org.springframework.security.core.userdetails.UserDetails;import java.util.Collection;public class User implements UserDetails { private String username;
2022-05-04 19:36:59
394
原创 SpringSecurity[02]:自定义登录页
自定义登录页这个功能,在实际项目中几乎不会用,因为现在都前后端分离,页面统一由前端提供,也包括了登录页。这里只是为了学习研究才写出来。如果不敢兴趣可以跳过。1、重写WebSecurityConfigurerAdapter类import org.springframework.context.annotation.Configuration;import org.springframework.security.config.annotation.web.builders.HttpSecurity;
2022-05-04 18:27:34
508
原创 SpringSecurity[01]:初体验SpringSecurity
1、创建SpringBoot项目,并引入SpringSecuritypom.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.or
2022-05-04 17:47:53
458
原创 MySql配置参数详解
#*** client options 相关选项 ***##以下选项会被MySQL客户端应用读取。注意只有MySQL附带的客户端应用程序保证可以读取这段内容。如果你想你自己的MySQL应用程序获取这些值。需要在MySQL客户端库初始化的时候指定这些选项。[client]port = 3309socket = /usr/local/mysql/tmp/mysql.sock[mysqld]!include /usr/local/mysql/etc/mysqld.cnf #包含的配置文件 ,把用
2022-05-04 17:00:58
1909
原创 Docker常用设置
设置镜像仓库vim /etc/docker/daemon.json{ "registry-mirrors": [ "https://mirror.ccs.tencentyun.com" ]}设置日志大小vim /etc/docker/daemon.json{ "log-driver":"local", "log-opts":{ "max-size":"10m", "max-file":"3" }}设置容器随Dock
2022-05-04 14:42:56
1110
原创 Docker离线安装
1、获取离线安装包官方离线安装包获取2、解压文件unzip docker-20.10.9.ziptar -zxvf docker-20.10.9.tgz3、将Docker解压目录下的可执行文件,全部拷贝到系统的bin目录下mv docker/* /usr/bin/4、将docker添加到系统的systemctl服务中vim /etc/systemd/system/docker.service[Unit]Description=Docker Application Container
2022-05-04 09:03:50
362
原创 Java面试,整理于2020-06-28日
Java面试1、Spring项目中@Autowired 与@Resource的区别?2、在java中读取项目资源时,路径加“/”与不加的区别?3、如何修改已部署jar包中application.yml配置文件中的配置参数?4、Spring注解@controller、@service、@component、@repository区别?5、Linux常用操作命令有哪里?6、mybatis中#{}和${...
2020-06-28 14:30:05
103
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人