- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 获取微信授权,获取微信用户信息
{ try { if (code == null) { String redirectUrl =URLEncoder.encode(redirect_url, "gb2312"); String getCodeUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APP
2016-05-20 18:19:22 872
原创 Springmvc 拦截器
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:task="http://www.springframework.org/schema/task" mvc:interceptors> mvc:interceptor>
2016-05-30 13:09:49 256
原创 mybatis 注解
xml version="1.0" encoding="UTF-8"?> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
2016-05-30 13:08:53 310
原创 Apache shiro 登录验证授权管理
xml version="1.0" encoding="UTF-8"?> xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
2016-05-27 16:40:50 2077
原创 获取当前ip
public static String getRealIp(HttpServletRequest req) { String ip = req.getHeader("X-Real-IP"); if (ip != null) { if (ip.indexOf(',') == -1) { return ip; } return ip.
2016-05-27 13:23:21 266
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人