Junit:保存之后才能test
beanutils不能给null值的bean封装
mybatis中配置mapper一个出错就不能创建SqlSessionBuilder
绝对不将项目放在中文目录下,maven会找不到pom文件
netstat -ano 查看端口情况
pom文件报出MoJo缺失加入:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
</plugin>
</plugins>
</build>
web.xml中的spring监听器一定不能删否则会出现注入失败!!!
mysql服务启动出现错误:“服务启动后停止,未经由其他服务或应用使用时将自动停止”。进入计算机管理,查看windows日志,查看错误原因。
本次原因:无法创建ipv4 socket 。解决方案:重置winsock , cmd命令:netsh winsock reset
springboot中的模板引擎实时生效做法:
1.禁用引擎缓存 spring.thymeleaf.cache=false
2.ctrl+f9实时编译
eclipse 安装插件出现 Cannot perform operation. Computing alternate solutions, may take a while
把available software site中的外网地址全disable
xftp使用其他用户登录时无法打开远程文件夹,
1.linux的SELINUX的宽松模式未开启.
getenforce //:查看SELINUX模式
setenfroce 0;关闭强制模式.
pe:
socket发送报文时不设置结束标志(eof)服务端将不会读报文,
机制是读取时使用的bio的readline方法,此方法必须接收到一个eof或者换行符才会结束读取,否则会一直等待直到tcp超时