- 博客(38)
- 收藏
- 关注
原创 最大索引优先队列和最小索引优先队列
感谢老师的讲解,代码视频讲解 https://www.bilibili.com/video/BV1iJ411E7xW?p=114&spm_id_from=pageDriver//最大索引优先队列package com.example.demo.study.tree.youxianqueue;/** * @author ming * @create 2022/5/30 * @description: 最大索引优先队列 */public class IndexMaxPriorityQu
2022-05-30 18:09:23
141
原创 十大排序算法代码
package com.example.demo.code30;import java.util.Arrays;import java.util.Random;/** * @author ming * @create 2022/5/29 * @description: */public class DataChecker { static int[] generateRandomArray(){ Random r = new Random();
2022-05-30 11:26:12
151
原创 动态代理的两种方式
在这里插入代码片1.JDK动态代理public class MyHandler implements InvocationHandler { //声明代理对象即是需要增强处理的对象 private Object target; public MyHandler(Object target) { this.target = target; } public MyHandler() { } //定义方法获取动态生成的代理对象
2022-03-25 10:09:26
115
原创 springboot自动配置原理
@SpringBootApplication注解有包含下面三个注解@SpringBootConfiguration@EnableAutoConfiguration@ComponentScan@SpringBootConfiguration是有@Configuration构成,即是配置类的注解@EnableAutoConfiguration由@AutoConfigurationPackage和@Import({AutoConfigurationImportSelector.class})组成@
2022-03-15 16:20:18
729
原创 记录一次EasyExcel读取的对象属性全为null
原因是因为加了lombok中的注解 @Accessors(chain = true) 将这个注解去掉就好了
2021-11-17 10:25:37
541
原创 SpringSecurity学习笔记
一 .项目启动在项目中若添加SpringSecurity的依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId></dependency>启动项目时会默认拦截所有的请求,要求必须登录之后才能进行相应的访问二.SpringSecurity本质
2021-10-28 15:21:50
223
原创 Centos7配置静态IP
配置vmare静态你ip方法1.将vmare设置成桥接方式2.查看windows系统本地ip这里有一个网卡是192.168.145.1,所以后面修改linxu配置文件是无论是ip 网关 dns 开头都要也192.168.1452.进入静态ip配置页面3.添加```bashIPADDR="192.168.40.123"NETMASK="255.255.255.0"GATEWAY="192.168.145.1"DNS1="192.168.145.1"最后修改ONBO
2021-10-21 16:15:17
234
原创 一次血的教训关于SpringBoot SpringCloud SpringCloudAlibaba
这次记录是想让自己记住,关于SpringBoot SpringCloud SpringCloudAlibaba他们之间版本的关系,绝对不能按照自己的想法,胡乱配置版本,后面出错了,抓耳挠腮你也想不出解决的办法这上面是一位大佬的博客的内容,他的原文博可地址是https://blog.youkuaiyun.com/qq_28834355/article/details/108094331?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRL
2021-10-11 14:51:12
128
原创 记录一次pom依赖始终下不下来的解决方案
在使用SpringCloudAlibaba的时候有一个jar包是nacos-client-1.1.1 jar包始终下不下来后来,参照大神的一遍文章https://www.cnblogs.com/javawxid/p/10850225.html用mvn install:install-file -Dfile=D:\jarpackage\nacos-client-1.1.1.jar -DgroupId=com.alibaba.nacos -DartifactId=nacos-client -Dversion=
2021-09-27 14:03:52
948
原创 从Servlet 到 SpringMVC 相关配置
一、servlet xml配置1.首先建立一个maven项目项目结构为[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-tuz7NHIo-1624203239226)(C:\Users\user\AppData\Roaming\Typora\typora-user-images\1624149998570.png)]2.导入servlet的依赖包servlet-api 和jsp-api<!--添加Servlet和JSP依赖--><dependency&
2021-06-21 08:31:51
205
原创 springboot项目打成Jar包放到服务器上异常
在本地IDEA 上部署打包云行都正常,打成Jar包到服务器上运行报错org.thymeleaf.exceptions.TemplateInputException: Error resolving template [/admin/index], template might not exist or might not be accessible by any of the configured Template Resolvers原来在路径上不小心多加了个’/’去掉’/admin/index’ .
2021-06-18 15:20:50
179
原创 Java IO 流
一.文件操作创建文件对象,无论文件是否存在File file = new File("");File file2 = File f3 = new File(File parent, String child);File f3 = new File(String parent,String child);java.io.File类:文件和目录路径名的抽象表示形式,与平台无关File 能新建、删除、重命名文件和目录,但 File 不能访问文件内容本身。如果需要访问文件内容本身,则需要使用输
2021-06-10 09:05:54
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人