Spring Boot 启动(二) Environment 加载 Spring 系列目录(https://www.cnblogs.com/binarylei/p/10198698.html) 上一节中讲解了 SpringApplication 启动的整个流程,本节关注第二步 prepareEnvironment,尤其是配置文件的加载. Spring Boot 配置使用 Spring Boot 配置文件加载流程分析 - ConfigFileApplicationListener 一.prepare
Django的urls.py加载静态资源图片,TypeError: view must be a callable or a list/tuple in the case of include(). 想直接显示图片,加个静态的地址,查了许多网上资料.写进去后报错:TypeError: view must be a callable or a list/tuple in the case of include(). 就是下面这段代码 url(r'^images/(?P<path>.*)$', s
当使用RotatingFileHandler作为django的日志处理器的时候,会报: Traceback (most recent call last): File "C:\Python27\lib\logging\handlers.py", line 78, in emit self.doRollover() File "C:\Python27\lib\logging\handlers.py", line 141, in doRollover os.rename