- 博客(9)
- 收藏
- 关注
原创 关于windows10启动docker启动报错,Hardware assisted virtualization and data execution protection must...
因为之前安装了vmware的原因,今天启动Docker启动出现如下错误:Hardware assisted virtualization and data execution protection must be enabled in the BIOS.See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enable。然后查看了docker官方手册,发现可能是安装了hyperviso
2021-10-15 20:02:33
1083
原创 Springboot使用自带的springboot-test模块时出现bean无法注入的问题
原来使用springboot自带的test模块没有出现这个问题,但是这次因为包名不对应出现了bean一直无法注入然后查看别人的博客才发现这个springboot-test模块的一个潜在使用条件,解决了如上图,可以看到目录结构application启动类时com.example.demo, test类也是com.example.demo,那么我们创建其他类的时候,比如pojo,service,都应该在application类所在包同级或者下面创建,笔者是因为出现如下图如上图,我将其他类包创建在了app
2021-03-11 15:26:55
1503
原创 网络安全测试的一道题
http://183.129.189.60:10061/这是靶机地址,关于web安全的,网上搜了搜很多还是没有头绪,有没有大佬会这个啊
2020-09-11 15:13:39
652
原创 springboot项目中使用springbootTest进行单元测试,解决正常单元测试空指针异常的问题
在正常单元测试中,我们向方法上添加@Test注解即可,但是在springboot中我们要使用类似@AutowireduserService userService;这种自动注入的类就可能会报空指针异常,就是userService无法被注入,那么springboot就给了我们一个将junit与springboot结合起来的依赖 <dependency> ...
2020-03-17 12:36:58
3739
1
转载 Js遍历el表达式中的java集合
首先obj是一个对象数组由后台传过来obj 里面有 name,password属性var arr=${obj}; --------------------错误的正确用法var arr=new Array[];<c:forEach items="${obj}" var= "module"> var module = {"name":"${module.n...
2019-05-25 10:24:33
356
原创 spring与mybatis整合问题
显示配置文件不存在 it doesn't exit很可能是未编译 两种解决办法1 在pom文件上面加上<build> <finalName>tourst</finalName> <pluginManagement><!-- lock down plugins versions to avoid using Maven de...
2019-04-10 17:54:49
179
原创 第一次创建项目使用git提交
首先 git status 看看是否有更改以及确认一下状态第二步 加进Gitgit add .//有个空格加点第三步 再git status 查看一下状态第四步git commit -am "commitby 2019.1.5" //windows用双引号 linux用单引号第五步 连接远程仓库 git remote add origin 你的链接第六步 git...
2019-01-05 17:16:31
292
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人