摘要: 问题 面对Servcie层对捕捉的异常不回滚的处理方案: .1.* 默认spring事务只在发生未被捕获的 runtime excetpion()时才回滚。 2.* * spring aop 异常捕获原理:被拦截的方法需显式抛出异常,并不能经任何处理,这样aop代理才能捕获到方法的异常,才能进行回滚 阅读全文
posted @ 2019-12-12 13:47 胄王 阅读(1795) 评论(0) 推荐(0)
摘要: Shell学习 我的博客 shell脚本学习 执行脚本报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题 问题原因:在win下操作的时候,编辑了hello.sh文件,换行结尾是\n\r,但是在linux下是\n,所以会有多处来的\r 解决方法:sed -i 's/\r$//' h 阅读全文
posted @ 2019-11-12 17:04 胄王 阅读(130) 评论(0) 推荐(0)
摘要: 查看FTP服务是否运行中:service vsftpd status 查看本地是否含有包含ftp的进程开启:ps -ef | grep ftp FTP设置开机自动运行:chkconfig vsftpd on 关闭FTP开机自动运行:chkconfig vsftpd off 查看所有服务开启自动运行的 阅读全文
posted @ 2019-11-11 16:33 胄王 阅读(9076) 评论(0) 推荐(1)
摘要: the independence in economy ,there is a lack of self-esteem. the independence in thinking,there is a lack of self-direction. the independence in perso 阅读全文
posted @ 2019-10-29 14:42 胄王 阅读(366) 评论(0) 推荐(0)