String,StringBuilder,StringBuffer三者的区别
最近突然被问起String,StringBuilder,StringBuffer三者的区别,发现自己确实对这方面的知识不是很了解.所以学习了一下做个笔记.
<Excerpt in index | 首页摘要>
<The rest of contents | 余下全文>
String
String 类是一个常量,String类本身和其中存储字符的数组都是用final关键字修饰的,所以不能被继承
12/** The value is used for character storage. */private final char value[];
String str=”hello world”和String str=new String(“hello world”)的区别12345678910111213public class Main { public static void main(String[] args) { String string1 = "hello word" ...
mysql的时区错误问题: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one
链接数据库时候出现cexception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
<Excerpt in index | 首页摘要>
<The rest of contents | 余下全文>
spring boot 链接数据库的时候报错1234567891011cexception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nes ...
navicat 连接 mysql Client does not support authentication protocol requested by server
Client does not support authentication protocol requested by server; consider upgrading MySQL client
<Excerpt in index | 首页摘要>
<The rest of contents | 余下全文>
报错信息:1Client does not support authentication protocol requested by server; consider upgrading MySQL client
解决方案:打开mysql的MySQL Command Line Client 输入:
123USE mysql;ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';FLUSH PRIVILEGES;
localhost:本机地址123456:要设置的密码
hexo 常用命令
hexo 的一些常用命令
<Excerpt in index | 首页摘要>
<The rest of contents | 余下全文>
hexo123npm install hexo -g #安装 npm update hexo -g #升级 hexo init #初始化
简写hexo n "我的博客" == hexo new "我的博客" #新建文章hexo p == hexo publishhexo g == hexo generate#生成hexo s == hexo server #启动服务预览hexo d == hexo deploy#部署
服务器hexo server #Hexo 会监视文件变动并自动更新,您无须重启服务器。hexo server -s #静态模式hexo server -p 5000 #更改端口hexo server -i 192.168.1.1 #自定义 IP
hexo clean ...