- 博客(7)
- 收藏
- 关注
转载 Mysql配置远程连接
1、登录 mysql -u root -p 2、切换到use库 use mysql 3、查询用户表host select user,host from user; 我修改的是root用户,已经将host修改为%了,不为%的执行下一步 4、将root用户的host 从localhost改为 %即可 update user set host= "%" where user = "root" ;flush privileges ; ...
2022-01-12 22:10:38
2692
原创 RSA:公式与练习
RSA 固定公式 公钥(e,n) 私钥(d,n) 明文m n = p * q ø(n) = (p - 1) * (q - 1) ed ≡ 1 mod ø(n) 密文C=m^e mod n 解密m=c^d mod n 例题 在 RSA 算法中,取密钥 E = 3,D = 7,则明文 6 的密文是() 加密 ed ≡ 1 mod ø(n) 3*7 = 1 mode ø(n) ø(n) = 20 ø(n) = (p - 1) * (q - 1) 20 = (
2021-07-27 17:54:21
479
1
原创 SpringSecurity:入门案例
SpringSecurity入门案例 创建项目 新建springboot项目 确定新建(什么都不要配置) 配置SpringSecurity依赖 修改pom.xml,添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depe
2021-07-21 16:30:35
181
原创 异常记录:SpringBoot(启动报错)Unsatisfied dependency expressed through field ‘baseMapper‘;
此处UnsatisfiedDependencyException异常引发原因是Spring启动时,进行mapper扫描时发现不符合约束以及规范的标签,抛出异常。 异常信息 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxController': Unsatisfied dependency expressed through field 'liabili.
2021-07-04 12:39:36
2703
原创 异常记录:MyBatis(方法异常)FUNCTION xxx.sum does not exist
异常信息为FUNCTION xxx.sum does not exist,意思为找不到sum()方法。 异常信息 java.sql.SQLSyntaxErrorException: FUNCTION xxx.sum does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manual 解决思路: 检查mybatis的xml文件sql写法。 错误写法:仔细检查,sum和(*)之间.
2021-07-01 15:01:31
3207
2
原创 MyBatis-Plus代码生成器
import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.generator.AutoGenerator; import com.baomidou.mybatisplus.generator.config.DataSourceConfig; import com.baomidou.mybatisplu
2021-06-30 22:59:53
105
原创 前后端交互问题:Js拦截Form提交,Ajax提交form表单内容SpringBoot实体类接收参数全为null
$.ajax({ url: "/als/type/add", type: "post", data: data.field, dataType: "json", contentType: "application/x-www-form-urlencoded;charset=UTF...
2021-06-30 22:55:44
382
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅