会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
自由港
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
14
15
16
17
18
19
20
21
22
···
46
下一页
2019年4月25日
nginx 配置
摘要: 1.worker_processes: 工作进程数量,一般这个配置成 和cpu的线程数一致。 比如双核4线程就配置为4 2.too many open files 错误 如果NGINX的error.log出现大量的Too many open files,说明文件句柄不够用了,这时候我们需要加大系统的
阅读全文
posted @ 2019-04-25 22:39 自由港
阅读(197)
评论(0)
推荐(0)
2019年4月19日
使用 mybatis plus 动态数据源
摘要: 1.pom.xml 增加 2.配置 application.yml 3.修改 SpringBootApplication 注解配置 这样就可以使用动态数据源了。
阅读全文
posted @ 2019-04-19 17:51 自由港
阅读(7146)
评论(0)
推荐(0)
使用mybatis plus 操作数据库
摘要: mybatis plus 是基于mybatis 的一个增强包,比 mybatis 更加容易使用。 特点: 1.分页支持 2.支持自定义查询。 3.简单的情况下,不需要写map.xml 文件 4.支持租户过滤 下面介绍一下 它的使用方法 1.引入jar包。 在 pom.xml 增加 2.配置使用数据源
阅读全文
posted @ 2019-04-19 15:55 自由港
阅读(17985)
评论(0)
推荐(2)
2019年4月18日
IDEA springboot 项目静态文件修改不更新的问题
摘要: springboot 项目的页面和静态文件,在项目启动后,修改无效。按照下面的配置可以解决问题。 1.file-setting 勾选项目自动构建 2.使用快捷键 ctrl+ shift+ alt + / 勾选复选框后重启,就可以了。
阅读全文
posted @ 2019-04-18 16:34 自由港
阅读(5835)
评论(1)
推荐(1)
2019年4月14日
fastjson 序列化,反序列化Map对象的顺序问题
摘要: 使用JSONObject 读取JSON字符串时,读取出来的数据,通过变量时是无序的。 但是业务希望返回是顺序的。 String str="{name:\"A\",address:\"B\",tel:\"C\",user:{name:\"A\",address:\"B\"}}"; JSONObject
阅读全文
posted @ 2019-04-14 11:33 自由港
阅读(1646)
评论(0)
推荐(0)
2019年4月5日
springsecurity 源码解读 之 RememberMeAuthenticationFilter
摘要: RememberMeAuthenticationFilter 的作用很简单,就是用于当session 过期后,系统自动通过读取cookie 让系统自动登录。 我们来看看Springsecurity的过滤器链条。 我们发现这个 RememberMeAuthenticationFilter 在 匿名构造
阅读全文
posted @ 2019-04-05 18:54 自由港
阅读(664)
评论(0)
推荐(0)
2019年4月3日
springsecurity 源码解读之 AnonymousAuthenticationFilter
摘要: 我们知道springsecutity 是通过一系列的 过滤器实现的,我们可以看看这系列的过滤器到底长成什么样子呢? 一堆过滤器,这个过滤器的设计设计上是 责任链设计模式。 这里我们可以看到有一个 AnonymousAuthenticationFilter 过滤器。 顾名思义我们知道这个是一个叫 匿名
阅读全文
posted @ 2019-04-03 22:54 自由港
阅读(685)
评论(0)
推荐(0)
springsecurity 源码解读之 SecurityContext
摘要: 在springsecurity 中,我们一般可以通过代码: SecurityContext securityContext = SecurityContextHolder.getContext(); Authentication auth = securityContext.getAuthentic
阅读全文
posted @ 2019-04-03 22:24 自由港
阅读(1161)
评论(0)
推荐(0)
tomcat 配置 使用 HTTPS
摘要: 1.生成证书 keytool -genkeypair -alias "tomcat" -keyalg "RSA" -keystore "d:\temp\keystore\tomcat.keystore" 口令输入 :123456 名字姓氏使用 :域名 ,我这里使用localhost 密钥口令输入:t
阅读全文
posted @ 2019-04-03 10:28 自由港
阅读(203)
评论(0)
推荐(0)
2019年3月27日
springboot 简单使用 activemq 接收消息
摘要: 1.在pom.xml 加入配置文件 2.编辑代码 这个消息message 是从队列读取的消息。 @JmsListener(destination = "oa") 这样程序就可以从指定的队列读取消息了。
阅读全文
posted @ 2019-03-27 09:01 自由港
阅读(541)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
46
下一页
公告