会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
酷比的天朝纸民
博客园
首页
新随笔
联系
管理
订阅
2020年5月11日
3 字节的 UTF-8 序列的字节 3 无效
摘要: 报错信息: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 3 无效。 win10下 启动idea 执行程序不报错,打成jar包 java -jar xxx.ja
阅读全文
posted @ 2020-05-11 16:26 酷比的天朝纸民
阅读(444)
评论(0)
推荐(0)
2019年4月26日
springboot 返回json字符串格式化问题
摘要: 在idea中yml文件中添加以下注解就可以格式化json字符串效果 原返回json格式为: {"isSuccess" : "ok","code" : "0","message" : "success","result" : {"version" : "v2.0.8"}}
阅读全文
posted @ 2019-04-26 11:11 酷比的天朝纸民
阅读(4383)
评论(0)
推荐(2)
2019年4月24日
springboot junit
摘要: 1 添加pom依赖 org.springframework.boot spring-boot-starter-test test2 // 获取启动类,加载配置,确定装载 Spring 程序的装载方法,它回去寻找 主配置启动类@SpringBootTest// 让 JUnit 运行 Spring 的测试环境, 获得 Spring 环境的上下文的支持@RunWith(SpringRunn...
阅读全文
posted @ 2019-04-24 20:11 酷比的天朝纸民
阅读(294)
评论(0)
推荐(0)
2018年6月15日
eclipse运行项目,tomcat报错:Exception in thread :http-bio-8080-exec-4
摘要: eclipse运行项目,tomcat报错:Exception in thread :http-bio-8080-exec-4 转自 https://www.cnblogs.com/yby-blogs/p/6283105.html 今天用eclipse开发项目后,新建一个tomcat的server,然
阅读全文
posted @ 2018-06-15 15:32 酷比的天朝纸民
阅读(418)
评论(0)
推荐(0)
Eclipse+Maven环境下java.lang.OutOfMemoryError: PermGen space及其解决方法
摘要: 转自 https://blog.csdn.net/qdgengwenfei/article/details/71455432 java.lang.OutOfMemoryError: PermGen space PermGen space的全称是Permanent Generation space,是
阅读全文
posted @ 2018-06-15 11:40 酷比的天朝纸民
阅读(487)
评论(0)
推荐(0)
2017年9月21日
java 获取微信公众号code为空
摘要: 失败的原因是没将回调方法encode转换 /** * URL编码(utf-8) * * @param source * @return */ public static String urlEncodeUTF8(String source) { String result = source; try
阅读全文
posted @ 2017-09-21 15:44 酷比的天朝纸民
阅读(2249)
评论(0)
推荐(0)
2017年9月15日
搭建Nginx图片服务器
摘要: 本文转自http://blog.csdn.net/csdn_lqr/article/details/53334583 1、效果 例如:图片通过ftp服务上传到/home/ftpuser/www/images目录下,我想通过访问Nginx服务器来访问ftp目录下的图片文件,该url为http://19
阅读全文
posted @ 2017-09-15 10:24 酷比的天朝纸民
阅读(137)
评论(0)
推荐(0)
linux 设置固定ip
摘要: ls /etc/sysconfig/network-scripts/ifcfg-* 列出所有的设备配置文件 vim /etc/sysconfig/network-scripts/ifcfg-ens33 打开配置文件进行编辑,BOOTPROTO默认情况是dhcp动态获取的,改成static静态,再添加
阅读全文
posted @ 2017-09-15 10:19 酷比的天朝纸民
阅读(188)
评论(0)
推荐(0)
2017年9月14日
Nginx安装
摘要: 1 nginx安装环境 nginx是C语言开发,建议在linux上运行,本教程使用Centos6.5作为安装环境。 n gcc 安装nginx需要先将官网下载的源码进行编译,编译依赖gcc环境,如果没有gcc环境,需要安装gcc:yum install gcc-c++ n PCRE PCRE(Per
阅读全文
posted @ 2017-09-14 11:03 酷比的天朝纸民
阅读(138)
评论(0)
推荐(0)
2017年9月13日
Centos 7 开启端口
摘要: Centos 7 开启端口 CentOS 7 默认没有使用iptables,所以通过编辑iptables的配置文件来开启80端口是不可以的 CentOS 7 采用了 firewalld 防火墙 如要查询是否开启80端口则: 1 2 [root@joe-pc ~]# firewall-cmd --qu
阅读全文
posted @ 2017-09-13 16:12 酷比的天朝纸民
阅读(132)
评论(0)
推荐(0)
下一页
公告