上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
摘要: 非递归的遍历模板 1.先序遍历 根左右 Stack<TreeNode> stack = new Stack<>(); while(!stack.isEmpty() || root != null){ while(root != null){ visit(根节点) stack.push(root); 阅读全文
posted @ 2021-09-03 01:10 INnoVation-V2 阅读(51) 评论(0) 推荐(0)
摘要: Java - Lambda 一.Lambda简介 Lambda是Java 8的一个新特性,可以看做是一个匿名函数 使用Lambda表达式可以非常简洁的对一个接口进行实现 二.Lambda对接口的要求 要求接口中抽象方法只能有一个 可使用@FunctionnalInterface将一个接口修饰为函数式 阅读全文
posted @ 2021-08-16 16:24 INnoVation-V2 阅读(92) 评论(0) 推荐(0)
摘要: SpringBoot使用Gson @Configuration public class MvcConfig { @Bean public HttpMessageConverters customConverters() { Collection<HttpMessageConverter<?>> m 阅读全文
posted @ 2021-08-08 16:54 INnoVation-V2 阅读(135) 评论(0) 推荐(0)
摘要: SpringBoot引入spring-boot-starter-security后无法接收前端请求 创建一个新Java文件 @EnableWebSecurity public class SpringSecurityConfig extends WebSecurityConfigurerAdapte 阅读全文
posted @ 2021-08-08 15:20 INnoVation-V2 阅读(561) 评论(0) 推荐(0)
摘要: VMware虚拟机IP地址老是改变的解决办法 ip变化原因 DHCP分配IP地址后,有一个租用时长,默认两小时,到了租用时长,ip就会过期,主机会重新申请ip地址,这样地址就变了 解决方法就是修改ip租用时长 1.配置租用时间 1.打开Vmware Workstation 2.编辑 → 虚拟网络编辑 阅读全文
posted @ 2021-08-07 18:47 INnoVation-V2 阅读(3645) 评论(0) 推荐(0)
摘要: 加密 一.对称加密 特点: 加密和解密使用同一个秘钥 存在的问题 加密解密用同一个密钥,被黑客拦截知道密钥后安全丧失 二.非对称加密 特点: 加密和解密使用不同的秘钥,一把作为公开的公钥,另一把作为私钥。公钥加密的信息,只有私钥才能解密。私钥加密的信息,只有公钥才能解密 公钥可以公开给别人进行加密, 阅读全文
posted @ 2021-08-07 13:18 INnoVation-V2 阅读(305) 评论(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 阅读(65) 评论(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 阅读(82) 评论(0) 推荐(0)
摘要: 关于基础类型Integer String的clone() 众所周知,Java容器类中的clone为浅复制,但当我们内部存储Integer类型对象时,似乎好像变成了深复制,类似如下代码 public static void main(String[] args) { ArrayList<Integer 阅读全文
posted @ 2021-06-21 22:26 INnoVation-V2 阅读(310) 评论(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 阅读(5482) 评论(0) 推荐(1)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页