摘要: 子模块配置 buildscript { repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } maven { url "${nexusUrl}" credent 阅读全文
posted @ 2020-12-05 10:35 码农记事本 阅读(1325) 评论(0) 推荐(1)
摘要: public class BeanUtil { public static <T> List<T> copyProp(List<?> fromList, Class<T> toC, String... filterProp) { List<T> ts = new ArrayList<>(); for 阅读全文
posted @ 2020-12-05 10:21 码农记事本 阅读(89) 评论(0) 推荐(0)
摘要: 问题 最近在写博客浏览量的时候,设计了这么一个逻辑:同一个IP浏览一遍文章,5分钟内不刷新次数。就需要在服务器端得到用户的真实IP,我代码是这样写的(从网上找的方法): public static String getRealIp(HttpServletRequest request) { Stri 阅读全文
posted @ 2020-12-05 10:16 码农记事本 阅读(671) 评论(0) 推荐(0)