Amos的随笔

Java/Python/Go,软件测试等等

导航

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页

2018年3月27日 #

idea jdk明明是1.8了,还是 出现Diamond types are not supported at this language level

摘要: 三个地方 project structure中的project ,SDK选择1.8,Project language level选择8project structure中的module,选择Language level为8setting中的java compiler maven配置 <!--控制项目 阅读全文

posted @ 2018-03-27 20:05 AmosChen 阅读(9) 评论(0) 推荐(0) 编辑

ERROR:syntax error at or near "$8" in postgres

摘要: 数据库 postgresql 手残的开发人员在写mybatis的xml文件时,多写了一个”}”符号。 where no= #{no,jdbcType=BIGINT}} 阅读全文

posted @ 2018-03-27 09:09 AmosChen 阅读(2) 评论(0) 推荐(0) 编辑

2018年3月24日 #

Java不同类型之间相互转换(持续更新)

摘要: 背景 Java这个类型转换不好记忆,写个笔记加深记忆 double、float互转 double转float Object a = 1.0; float b = (Float) a; System.out.println(b); 报错 > java.lang.Double cannot be cas 阅读全文

posted @ 2018-03-24 17:48 AmosChen 阅读(32) 评论(0) 推荐(0) 编辑

2018年3月18日 #

Java selenium - 父子、兄弟、相邻节点定位方式详解

摘要: 说明 所有的细节全部已经验证通过,Python可参考此篇文章《Python selenium —— 父子、兄弟、相邻节点定位方式详解》 另外,贴出来的代码全部取至于PPmoney官网。^_^ 小小滴广告一波啦。 若有任何异议或者建议,望不吝指教。 由弟弟节点定位哥哥节点 id动态 咱们先看一下htm 阅读全文

posted @ 2018-03-18 22:43 AmosChen 阅读(66) 评论(0) 推荐(0) 编辑

2018年3月17日 #

Invalid bound statement (not found)

摘要: 说明 可能每个人遇到这个情况不同,此方法不一定能解决您的问题。 背景 使用spring + mybatis + gauge来写bdd用例,表user_info用mybatis generator自动生成的mapper.xml, mapper.java, model。 自动生成的查询无法满足结果,然后 阅读全文

posted @ 2018-03-17 17:45 AmosChen 阅读(4) 评论(0) 推荐(0) 编辑

2018年3月5日 #

Java简单入门【对比Python】Part2.POST JOSN请求

摘要: Post Json例子 这里我们选择postman自带的post地址,您打开postman后点击Collections,里面有很多请求的例子。 url = https://postman-echo.com/post content-type = application/json body = {“a 阅读全文

posted @ 2018-03-05 00:16 AmosChen 阅读(2) 评论(0) 推荐(0) 编辑

2018年2月5日 #

idea使用maven自动生成mybatis代码

摘要: 项目目录 dao 存放mapper.java文件models 存放生成的数据库表modelresources目录下的mapperXML存放生成的.xml文件 配置详情 maven配置 properties标签内添加对应版本 <mybatis.version>3.3.0</mybatis.versio 阅读全文

posted @ 2018-02-05 21:41 AmosChen 阅读(12) 评论(0) 推荐(0) 编辑

2018年2月2日 #

Idea - generatorconfig.xml URI is not registered

摘要: 使用maven-generator来自动生成代码和xml文件时,配置generatorconfig.xml 会报错: generatorconfig.xml URI is not registered 解决方法:【针对Idea】 鼠标移动到红色警告处,弹出灯泡,点击Fetch resource即可。 阅读全文

posted @ 2018-02-02 15:10 AmosChen 阅读(1) 评论(0) 推荐(0) 编辑

Failed to load class "org.slf4j.impl.StaticLoggerBinder".

摘要: 原文出处 https://www.slf4j.org/codes.html#StaticLoggerBinder 翻译: 当org.slf4j.impl.StaticLoggerBinder类无法加载到内存中时,会报告此警告消息。 如果在类路径上找不到合适的SLF4J绑定,就会发生这种情况。 在类路 阅读全文

posted @ 2018-02-02 13:32 AmosChen 阅读(26) 评论(0) 推荐(0) 编辑

2018年1月20日 #

Fatal error in launcher: Unable to create process using '"'解决办法

摘要: 发现问题 电脑上本来已安装了py3,想再装一个py2,然后将2与3的路径都加到path里面,为了可以在cmd面板里输入python2或者python3来快速唤起python,于是将python3文件夹的python.exe改名为python3.exe。然后想使用py3的pip命令来安装某个模块,结果 阅读全文

posted @ 2018-01-20 15:14 AmosChen 阅读(166) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页