- 博客(7)
- 收藏
- 关注
原创 linux centos 环境下 修改redis配置外网能够访问
更改redis.conf 文件修改之前bind 127.0.0.1protected-mode yes修改之后#bind 127.0.0.1protected-mode no双软认证高企软件认证著作权 恒标
2022-07-28 19:39:58 368 1
原创 (Linux Centos)下Mysql数据表名设置大小写不敏感
1.进入mysql 查询,现在状态show global variables like '%case%';2.编辑mysql配置文件vi /etc/my.cnf必须在 mysqld 这个节点下加入 ,否则不生效:lower_case_table_names = 13.重启mysqlservice mysqld restart双软认证高企软件认证著作权 恒标...
2022-07-28 19:15:31 290
原创 mybatis判断list为空或null,在xml文件中。
mybatis判断集合为空或者元素个数为零 ,mybatis判断list为空或null,在xml文件中,持久层写法: <if test="questionIds!= null and questionIds.size()>0" > WHERE id in <foreach collection="questionIds" index="index" item="item"
2022-07-26 15:29:29 6344 1
原创 Mybatis之foreach标签使用方法
MyBatis动态sql之foreach标签 Mybatis之foreach标签使用方法,Mybatis之foreach标签在xml文件中使用方法,持久层写法: <if test="questionIds!= null and questionIds.size()>0" > WHERE id in <foreach collection="questionIds" index="index"
2022-07-26 15:27:44 228
原创 java把 List数据用逗号隔开拼接成字符串
第一种:stream流(推荐)public static String parseListToStr3(List list){ String result = list.stream().map(String::valueOf).collect(Collectors.joining(",")); return result;}第二种:使用谷歌Joiner方法import com.google.common.base.Joiner;public static
2022-07-25 16:25:00 1201
原创 Linux下查看JDK安装路径
1、which java首先输入命令行,查看结果: [root@localhost ~]# which java /usr/bin/java PS:which Java是无法定位到Java的安装路径的,只能定位到执行路径;whereis java也无法定位,只能展示一部分的Java路径,如下所示:[root@localhost ~]# whereis java java: /usr/bin/java /usr/lib/java /etc/java /usr/share/java /usr/sh
2022-07-25 10:48:28 226
原创 java知识点整理
1、添加资源文件夹名在项目上右键->Properties->双击java Build Path->点Add Foler->在下面的选项中选择update exclusion filters in other source folders to solve nesting,再添入资源文件夹名,如src、res等。可以参考http://blog.csdn.net/hitustc/artic
2017-09-03 16:53:38 1045
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人