上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: SpringBoot引入spring-boot-starter-security后无法接收前端请求 创建一个新Java文件 @EnableWebSecurity public class SpringSecurityConfig extends WebSecurityConfigurerAdapte 阅读全文
posted @ 2021-08-08 15:20 INnoVation-V2 阅读(485) 评论(0) 推荐(0) 编辑
摘要: VMware虚拟机IP地址老是改变的解决办法 ip变化原因 DHCP分配IP地址后,有一个租用时长,默认两小时,到了租用时长,ip就会过期,主机会重新申请ip地址,这样地址就变了 解决方法就是修改ip租用时长 1.配置租用时间 1.打开Vmware Workstation 2.编辑 → 虚拟网络编辑 阅读全文
posted @ 2021-08-07 18:47 INnoVation-V2 阅读(2867) 评论(0) 推荐(0) 编辑
摘要: 加密 一.对称加密 特点: 加密和解密使用同一个秘钥 存在的问题 加密解密用同一个密钥,被黑客拦截知道密钥后安全丧失 二.非对称加密 特点: 加密和解密使用不同的秘钥,一把作为公开的公钥,另一把作为私钥。公钥加密的信息,只有私钥才能解密。私钥加密的信息,只有公钥才能解密 公钥可以公开给别人进行加密, 阅读全文
posted @ 2021-08-07 13:18 INnoVation-V2 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 一.Idea打Jar包带上依赖 修改pom.xml文件,添加插件,使用assembly里面的assembly打包即可 <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> < 阅读全文
posted @ 2021-07-04 13:17 INnoVation-V2 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1.mybatis设置文件未添加mapper 在mybatis文件中添加 <mappers> <mapper resource="com/innovationV2/mapper/UserMapper.xml"/> </mappers> ##2.mapper文件的命名空间设置错误 mapper文件内的 阅读全文
posted @ 2021-07-03 20:49 INnoVation-V2 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 关于基础类型Integer String的clone() 众所周知,Java容器类中的clone为浅复制,但当我们内部存储Integer类型对象时,似乎好像变成了深复制,类似如下代码 public static void main(String[] args) { ArrayList<Integer 阅读全文
posted @ 2021-06-21 22:26 INnoVation-V2 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1.下载mingw,下载地址https://nuwen.net/mingw.html,然后安装或解压 2.下载clang,下载地址http://llvm.org/releases/download.html,然后安装或解压 3.打开clion → Build,Execution,Deployment 阅读全文
posted @ 2021-04-29 16:06 INnoVation-V2 阅读(4013) 评论(0) 推荐(1) 编辑
摘要: 二分 二分的关键并不是单调性,而是存在某个性质能使队列一分为二 模板 bool check(int x) {/* ... */} // 检查x是否满足某种性质 // 找左边界或左边界值 int bsearch_1(int l, int r) { while (l < r) { int mid = l 阅读全文
posted @ 2021-01-06 23:10 INnoVation-V2 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 简介 ConcurrentHashMap;//线程安全的HashMap CopyOnWriteArrayList;//在读多写少的场合性能很好,远优于vector ConcurrentLinkedQueue;//线程安全的LinkedList BlockingQueue;//阻塞队列,适合作数据共享 阅读全文
posted @ 2020-06-01 21:05 INnoVation-V2 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一、JDK对线程池的支持 常用方法 newFixedThreadPool(int Threads); newSingleThreadExecutor(); newCachedThreadPool(); newSingleThreadScheduledExecutor(); newScheduledT 阅读全文
posted @ 2020-06-01 21:04 INnoVation-V2 阅读(199) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页