- 博客(5)
- 收藏
- 关注
原创 Transport Error: Cannot get remote repository refs.https://github.com/xxx/test1.git: cannot open git
问题出现: 在eclipse中pull项目至github上出现该问题查看报错日志org.eclipse.jgit.api.errors.TransportException: https://github.com/muzhiyi1996/test1.git: cannot open git-upload-pack at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:222) at..
2020-08-05 20:48:48 1348
原创 前台传参到后台出现中文乱码问题
方法一:在web.xml文件中添加字符集过滤 <filter> <filter-name>SpringEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <pa
2020-08-05 20:40:16 337
原创 Java调用执行python脚本
public static void main(String[] args) throws IOException, InterruptedException { String[] para=new String[] {"python","C:\\Users\\asus\\Desktop\\java_invoked.py"}; PythonInvoke.invokePy(para); } /** * java项目调用python脚本 */ pu
2020-08-05 20:36:44 192
原创 tomcat 请求出现RFC 7230 and RFC3986的错误
问题出现:tomcat由7.0.65升级到7.0.104后出现该问题java.lang.IllegalArgumentException:在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义原因分析:日志显示请求地址中包含不合法字符,出现400错误tomcat高版本严格按照RFC 3986规范解析地址。该规范只允许包含 a-zA-Z 0-9 - _ . ~ 以及所有保留字符 ! * ’ ( ) ; : @ & = + $ , / ? # [ ]
2020-08-05 20:33:36 1775 1
原创 tomcat服务器配置IP访问白名单与黑名单
在server.xml文件的host节点添加如下语句<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="" deny="" denyStatus="403" />其中allow表示白名单,deny表示黑名单,denyStatus表示无法访问时的状态码。allow和deny都为空时,表示所有id都能访问allow为空,deny有值时,表示除deny中的ip外都能访问allow有值,deny为空时,只
2020-07-29 15:50:11 2924 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人