报错总结
zbingley
联系QQ:965437973
展开
-
关于导入redis.properties文件报异常 java.lang.NumberFormatException: For input string:${redis.maxIdle}
原来是在测试时,没有导入redis.properties文件,value把${redis.maxIdle}解析为字符串,所以会报: For input string: "${redis.maxIdle}"异常。实际在项目部署启动tomcat后就不会报这样的异常,因为不会获取不到配置文件。public class TestSpringJedis { public static void ma...原创 2018-07-06 14:42:53 · 5167 阅读 · 0 评论 -
python异步编程 报错:module 'asyncio' has no attribute 'coroutine'
import asyncioasync def hello(name): print('Hello,', name)# 定义协程对象coroutine = hello("World")# 定义事件循环对象容器loop = asyncio.get_event_loop()# task = asyncio.ensure_future(coroutine)# 将协程转为t...原创 2019-03-16 15:47:40 · 6913 阅读 · 0 评论