摘要: 容器 列表 1 # 容器 2 li=[1,2,3,'abc',4.5,[2,3,4],{1:'one'}] 3 4 print(len(li)) 5 6 print(li[0]) 7 print(li[-1]) #{1:'one'} 8 9 li=[1,2,3] 10 li.append('a') 阅读全文
posted @ 2018-03-01 18:57 88aa123 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-03-01 14:46 88aa123 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 错误页面 resources/templates/error/4xx.ftl 错误页面路径配置:server.error.path 异常处理器来进行日志输出 如抛出异常 捕获异常 结果打印日志 阅读全文
posted @ 2018-03-01 14:37 88aa123 阅读(166) 评论(0) 推荐(0) 编辑
摘要: parent的pom.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche 阅读全文
posted @ 2018-03-01 14:19 88aa123 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 如spring-boot-starter中有spring-boot-autoconfigure包含大量自动配置 自定义自动配置如HttpClient 引入HttpClient依赖 <dependency> <groupId>org.apache.httpcomponents</groupId> <a 阅读全文
posted @ 2018-03-01 10:28 88aa123 阅读(329) 评论(0) 推荐(0) 编辑