![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习积累
hubinliweiwei
这个作者很懒,什么都没留下…
展开
-
PostgreSQ 连接问题 FATAL: no pg_hba.conf entry for host
PostgreSQ数据库为了安全,它不会监听除本地以外的所有连接请求,当用户通过JDBC访问是,会报一些如下的异常:org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host要解决这个问题,只需要在PostgreSQL数据库的安装目录下找到/data/pg_hba.conf,找到“# IPv4 lo...原创 2009-09-28 23:40:48 · 153 阅读 · 0 评论 -
IE显示样式、全屏
1,可以自己设置要显示的内容[code="java"]function open_win(){window.open("","_blank","[color=red]toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=...原创 2009-10-14 17:07:45 · 80 阅读 · 0 评论 -
Spring AOP for Controller
实际操作AOP的时候,出现AOP对Controller无效的情况。 要点: Controller中的方法是在【DispatcherServlet】中被调用 解决办法如下:在【xxx-yyy.xml】中追加<aop:aspectj-autoproxy />xxx-yyy.xml的位置如下: <servlet> <serv...2016-01-12 16:26:55 · 110 阅读 · 0 评论 -
使用自定义Spring-MessageConverter,加密Response
实际项目中,后台接口返回的内容是要加密的(我们可以在每个接口返回前手动加密、返回,这样总觉得不爽) Spring的MessageConverter正是用于转换数据(输入、输出)的所以,可以通过自定义一个MessageConverter,比较简洁地实现这个需求。 1. 为了最小的影响框架的功能,复用Jackson的Converter【AbstractJackson2H...原创 2016-01-13 17:38:24 · 280 阅读 · 0 评论