会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
肖镜泽
public static void main(String[] args) { String a = "I'M A DEVELOPER"; char[] chars = a.toCharArray(); int num = 0; for (char aChar : chars) { num+=(int)aChar; } System.out.println(num); }
博客园
首页
新随笔
联系
订阅
管理
2021年4月20日
IDEA的basedata Generate POJOs.groovy模板
摘要: import com.intellij.database.model.DasTable import com.intellij.database.model.ObjectKind import com.intellij.database.util.Case import com.intellij.d
阅读全文
posted @ 2021-04-20 10:59 肖镜泽
阅读(200)
评论(0)
推荐(0)
2021年3月2日
img标签访问图片返回403 forbidden问题
摘要: 解决办法:在<head></head>中添加 <meta name="referrer" content="no-referrer" /><!-- 隐藏发送请求时请求头表示来源的referrer字段。 --> 添加这个meta标签的作用是让请求头Referer的信息,而这个Referer的作用是防盗
阅读全文
posted @ 2021-03-02 17:47 肖镜泽
阅读(258)
评论(0)
推荐(0)
2021年1月28日
快速使用布隆过滤器
摘要: pom.xml <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>28.0-jre</version> </dependency> //布隆过滤器 public stati
阅读全文
posted @ 2021-01-28 11:39 肖镜泽
阅读(94)
评论(0)
推荐(0)
2020年9月2日
mybaits批量修改,批量添加,批量删除
摘要: 主要用到mybaits的foreach标签 foreach标签的属性主要有 collection :被遍历的参数,如果是list ,collection 的属性值就是list;如果是array数组,collection的属性值为array;如果被遍历的参数在map中,collection 的属性值就
阅读全文
posted @ 2020-09-02 16:38 肖镜泽
阅读(328)
评论(0)
推荐(0)
2020年8月13日
mysql替换函数
摘要: bitian中的数据换成(就是删除.com) 执行sql语句:update table_name set bitian = REPLACE(bitian,'.com','') where bitian like'%.com%'
阅读全文
posted @ 2020-08-13 15:18 肖镜泽
阅读(346)
评论(0)
推荐(0)
2020年7月31日
MySQL服务器“读取授权包”时丢失连接,系统错误:0
摘要: 问题原因: 是连数据库的电脑ip没有被授权 可以先在cmd中查询自己的ip地址 解决办法: 然后再找个能链接数据库的电脑,先用Navicat链接数据库,在Navicat中输入 SELECT * FROM mysql.user;查询 可以看见Host只对192.168.0.%,的ip是授权的。所有我们
阅读全文
posted @ 2020-07-31 14:16 肖镜泽
阅读(914)
评论(0)
推荐(0)
2020年7月23日
Mybatis中insert中返回主键ID的方法——mapper.xml
摘要: myMapper.xml <insert id="insertXXX" useGeneratedKeys="true" keyProperty="MyId" parameterType="com.xx.yy.MyClass"> //普通的插入语句SQL语句 </insert> 这样就可以插入数据后,
阅读全文
posted @ 2020-07-23 15:16 肖镜泽
阅读(5196)
评论(0)
推荐(0)
2020年7月8日
java 判断是否满足正则表达式
摘要: String s = "xxxx.js.jss";//目标字符串 String regex = "((?!\\.((css)|(html)|(js)|(json)|(xml))$).)+";//正则表达式 Pattern p = Pattern.compile(regex); Matcher m =
阅读全文
posted @ 2020-07-08 15:39 肖镜泽
阅读(6232)
评论(0)
推荐(0)
2020年7月3日
bootstrap-select多选框与Vue整合,下拉的数据刷新不出
摘要: 解决办法: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>bootstrap-select多选框与Vue整合</title> <!--样式依赖--> <link href="https://cdn.bootcss.com/tw
阅读全文
posted @ 2020-07-03 14:40 肖镜泽
阅读(2056)
评论(0)
推荐(0)
2020年6月28日
Windows 修改host文件不起作用
摘要: 今天配置host时,发现不起作用 通过百度在博客园找到一位园友的帖子解决了问题 1. windows 中hosts文件位置(win10): C:\Windows\System32\drivers\etc\hosts 2. 修改方式 .... # For example: # # 102.54.94.
阅读全文
posted @ 2020-06-28 17:28 肖镜泽
阅读(1160)
评论(0)
推荐(0)
下一页
公告