Easter79 Easter79
3年前
springboot集成druid连接池不支持批量更新
原因:Druid的防火墙配置(WallConfig)中变量multiStatementAllow默认为false;解决方案:设置Druid的防火墙配置(WallConfig)中变量multiStatementAllowtrue,新建DruidDataSource配置类配置类代码:@Configurationpubliccla
Easter79 Easter79
3年前
SpringBoot系列——Jackson序列化
  前言  SpringBoot提供了与三个JSON映射库的集成:GsonJacksonJSONB  Jackson是首选的默认库。  官网介绍:  https://docs.spring.io/springboot/docs/2.1.6.RELEASE/reference/html/boot
Stella981 Stella981
3年前
Android Activity四种加载方式
1概述Android中的Activity共有四种加载方式,可以在AndroidManifest.xml中对应的activity的android:launchMode中指定,四种方式如下:standradsingleTopsingleTasksingleInstance其中,standard是默认的
Stella981 Stella981
3年前
SpringBoot系列——Jackson序列化
  前言  SpringBoot提供了与三个JSON映射库的集成:GsonJacksonJSONB  Jackson是首选的默认库。  官网介绍:  https://docs.spring.io/springboot/docs/2.1.6.RELEASE/reference/html/boot
Stella981 Stella981
3年前
HOST is not allowed to connect to this mysql server
!(https://oscimg.oschina.net/oscnet/77684be3437d04b37952adb40064ffbec86.png) HOSTisnotallowedtoconnecttothismysqlserverhost主机不能访问本机的mysql服务,原因需要连接非本机的mysql的时候,默认host
Wesley13 Wesley13
3年前
Java多线程之线程池的手写改造和拒绝策略
目录自定义线程池的使用四种拒绝策略代码体现1\.自定义线程池的使用自定义线程池(拒绝策略默认AbortPolicy)publicclassMyThreadPoolDemo{  publicstaticvoidmain(Stringargs){    ExecutorSe
Easter79 Easter79
3年前
SVN使用教程(初阶)
1.安装1.1.查看版本svnversion1.2.命令安装yuminstallsubversion2.SVN创建版本库2.1.创建版本库svnadmincreate/usr/local/svn/apocalypse2.2.修改默认配置文件配置
Stella981 Stella981
3年前
SVN使用教程(初阶)
1.安装1.1.查看版本svnversion1.2.命令安装yuminstallsubversion2.SVN创建版本库2.1.创建版本库svnadmincreate/usr/local/svn/apocalypse2.2.修改默认配置文件配置
Stella981 Stella981
3年前
Django中Admin中的一些参数配置
设置在列表中显示的字段,id为django模型默认的主键list_display('id','name','sex','profession','email','qq','phone','status','create_time')设置在列表可编辑字段list_editable
Stella981 Stella981
3年前
Elasticsearch学习笔记——分词
1.测试Elasticsearch的分词Elasticsearch有多种分词器(参考:https://www.jianshu.com/p/d57935ba514b)Settheshapetosemitransparentbycallingset\_trans(5)(1)standardanalyzer:标准分词器(默认是