Mysql配置远程连接 1、登录mysql -u root -p2、切换到use库use mysql3、查询用户表hostselect user,host from user; 我修改的是root用户,已经将host修改为%了,不为%的执行下一步4、将root用户的host 从localhost改为 %即可update user set host= "%" where user = "root" ;flush privileges ;...
RSA:公式与练习 RSA固定公式公钥(e,n)私钥(d,n)明文mn = 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 = (
SpringSecurity:入门案例 SpringSecurity入门案例创建项目新建springboot项目确定新建(什么都不要配置)配置SpringSecurity依赖修改pom.xml,添加依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </depe
异常记录: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.
异常记录: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和(*)之间.
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
前后端交互问题: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...