09 2018 档案

bin sh git@github.com no such file or directory
摘要:window下使用git: 输入命令:git clone git @github.com:Alan0521/dotvim.git 出现/bin/sh:git@github.com no such file or directory fatal:The remote end hung up unexp 阅读全文

posted @ 2018-09-30 09:42 zzzhouheng 阅读(704) 评论(0) 推荐(0) 编辑

Mysql8.0 Public Key Retrieval is not allow错误的解决办法
摘要:在使用Mysql 8.0时重启后启动项目的事后会报错com.mysql.jdbc.exceptions.jdbc4.MysqlNonTransientConnectionException: Public Key Retrieval is not allow 最简单的解决办法就是在连接后面添加all 阅读全文

posted @ 2018-09-25 14:08 zzzhouheng 阅读(502) 评论(0) 推荐(0) 编辑

Spring cloud 之Feign基本使用
摘要:首先导入feign的依赖: 主程序: Feign客户端接口: 阅读全文

posted @ 2018-09-18 09:56 zzzhouheng 阅读(210) 评论(0) 推荐(0) 编辑

java.lang.NumberFormatException:For input string:"undefined"
摘要:在将字符串转换为数字时导致此错误,解决此问题的思路: 1、添加 try catch语句 2、判断字符串是否为数字,将介绍java中判断字符串是否为数字的方法的几种方法 发生错误的代码: 发生错误的原因: 由于Ajax调用的时候对应的参数未设置,导致后台获取到的字符串是“undefined”,在将它转 阅读全文

posted @ 2018-09-11 11:52 zzzhouheng 阅读(13130) 评论(0) 推荐(0) 编辑

Spring MVC @ResponseBody和@RequestBody使用
摘要:@ResponseBody用法: 作用:该注解用于将Controller的方法返回的对象,根据HTTP Request Header的Accept的内容,通过适当的HttpMessageConverter转换为指定格式后,写入到Response对象的body数据区。 使用时机: 返回的数据不是htm 阅读全文

posted @ 2018-09-10 17:43 zzzhouheng 阅读(1012) 评论(0) 推荐(0) 编辑

Spring Mvc:用MultiPartFile上传单个文件,多个文件
摘要:1、单个文件上传步骤: 添加Apache文件上传jar包 首先需要下载两个apache上传文件的jar包,commons-fileupload-1.3.1jar,commons-io-2.4.jar 具体使用版本,清根据项目进行选择 2、配置MultipartResolver处理文件 Spring  阅读全文

posted @ 2018-09-05 11:08 zzzhouheng 阅读(440) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示