摘要: 报错信息: 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 酷比的天朝纸民 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 在idea中yml文件中添加以下注解就可以格式化json字符串效果 原返回json格式为: {"isSuccess" : "ok","code" : "0","message" : "success","result" : {"version" : "v2.0.8"}} 阅读全文
posted @ 2019-04-26 11:11 酷比的天朝纸民 阅读(4327) 评论(0) 推荐(2) 编辑
摘要: 1 添加pom依赖 org.springframework.boot spring-boot-starter-test test2 // 获取启动类,加载配置,确定装载 Spring 程序的装载方法,它回去寻找 主配置启动类@SpringBootTest// 让 JUnit 运行 Spring 的测试环境, 获得 Spring 环境的上下文的支持@RunWith(SpringRunn... 阅读全文
posted @ 2019-04-24 20:11 酷比的天朝纸民 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 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 酷比的天朝纸民 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 转自 https://blog.csdn.net/qdgengwenfei/article/details/71455432 java.lang.OutOfMemoryError: PermGen space PermGen space的全称是Permanent Generation space,是 阅读全文
posted @ 2018-06-15 11:40 酷比的天朝纸民 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 失败的原因是没将回调方法encode转换 /** * URL编码(utf-8) * * @param source * @return */ public static String urlEncodeUTF8(String source) { String result = source; try 阅读全文
posted @ 2017-09-21 15:44 酷比的天朝纸民 阅读(2153) 评论(0) 推荐(0) 编辑
摘要: 本文转自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 酷比的天朝纸民 阅读(130) 评论(0) 推荐(0) 编辑
摘要: ls /etc/sysconfig/network-scripts/ifcfg-* 列出所有的设备配置文件 vim /etc/sysconfig/network-scripts/ifcfg-ens33 打开配置文件进行编辑,BOOTPROTO默认情况是dhcp动态获取的,改成static静态,再添加 阅读全文
posted @ 2017-09-15 10:19 酷比的天朝纸民 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 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 酷比的天朝纸民 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 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 酷比的天朝纸民 阅读(118) 评论(0) 推荐(0) 编辑