会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小海葵
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2021年6月10日
服务器获取客户端ip
摘要: private String getIpAddress(HttpServletRequest request){ String ip=request.getHeader("x-forwarded-for"); if((ip==null)||(ip.length()==0)||("unknown".e
阅读全文
posted @ 2021-06-10 18:06 小海葵
阅读(129)
评论(0)
推荐(0)
2021年6月7日
linux 增加权限
摘要: chmod -R 777 xxxx
阅读全文
posted @ 2021-06-07 14:33 小海葵
阅读(82)
评论(0)
推荐(0)
linux 压缩备份
摘要: tar czvf xxxx.tar.gz xxxx
阅读全文
posted @ 2021-06-07 14:30 小海葵
阅读(22)
评论(0)
推荐(0)
验证码Could not initialize class sun.awt.X11GraphicsEnvironment异常处理
摘要: 验证码出不来,报Could not initialize class sun.awt.X11GraphicsEnvironment异常 处理方案如下: catalina.sh文件的JAVA_OPTS参数后面增加 -Djava.awt.headless=true
阅读全文
posted @ 2021-06-07 14:26 小海葵
阅读(146)
评论(0)
推荐(0)
2021年6月3日
Spring-Aop实现用户操作日志记录 aop获取session
摘要: Spring-Aop获取session 第一种获取session方式 ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes(); HttpSes
阅读全文
posted @ 2021-06-03 18:07 小海葵
阅读(735)
评论(0)
推荐(0)
2020年12月25日
js jquery 数组的合并 对象的合并
摘要: 1 数组合并 1.1 concat 方法 var a=[1,2,3],b=[4,5,6]; var c=a.concat(b); console.log(c);// 1,2,3,4,5,6 console.log(a);// 1,2,3 不改变本身 1.2 循环遍历 var arr1=['a','b
阅读全文
posted @ 2020-12-25 17:03 小海葵
阅读(341)
评论(0)
推荐(0)
2020年12月16日
svn“run 'cleanup' if it was interrupted“报错的解决方法
摘要: svn提交遇到恶心的问题,可能是因为上次cleanup中断后,进入死循环了。 错误如下: Previous operation has not finished; run 'cleanup' if it was interrupted 解决方法:清空svn的队列 1.下载sqlite3.exe 2.
阅读全文
posted @ 2020-12-16 16:34 小海葵
阅读(2130)
评论(0)
推荐(0)
2020年9月14日
导出oracle整个数据库
摘要: 1 将数据库baiTEST完全导出,用户名system 密码manager 导出du到D:\daochu.dmp中zhi exp system/manager@TEST file=d:\daochu.dmp full=y 2 将数据库dao中system用户与sys用户的表导出 exp system
阅读全文
posted @ 2020-09-14 10:36 小海葵
阅读(1940)
评论(0)
推荐(0)
2020年7月30日
@Transactional 异常不回滚
摘要: 一个方法加上@Transactional(rollbackFor=Exception.class)不生效 查找结果如下: 1.@Transactional是基于AOP动态代理做的,所以方法必须是public;其他的修饰符不生效。 2.Spring事务控制器在catch里面做了判断只有RuntimeE
阅读全文
posted @ 2020-07-30 15:41 小海葵
阅读(1827)
评论(0)
推荐(0)
2020年7月29日
mysql与oracle 长度区别
摘要: mysql数据同步到oracle数据 mysql中varchar(10)与oracle中varchar2(10)不一致 mysql中varchar(10)代表10个汉字,10个字母,10个数字 oracle中varchar2(10)代表的是字节,而不是字符 mysql一个汉字三个字节,oracle一
阅读全文
posted @ 2020-07-29 16:30 小海葵
阅读(1179)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告