错误解决
Lee-Oct
这个作者很懒,什么都没留下…
展开
-
SpringMVC报错找不到ContextLoaderListener 的解决
在学习SpringMVC时,用eclipse创建项目之后启动tomcat报错严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: org.springframework.web原创 2017-10-20 12:27:25 · 3883 阅读 · 0 评论 -
关于 JSTL中类库导入的问题
在编写JSP页面使用JSTL时,有时候需要使用taglib指令,我们按照要求编写时完成后编译会报如下错误: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application有时候单独使用c原创 2017-08-06 17:29:12 · 643 阅读 · 0 评论 -
odoo报错 load could not load template Template: website.layout
问题描述:编写了自己的模块,启动localhost:8069成功,但是访问自己的网页如http://localhost:8069/firstDemo/firstDemo/报错查看日志显示原因: 我是因为想尝试website builder模块而安装了此模块,安装之前是访问没问题的,但是安装之后尝试成功不佳而卸载了此模块,因此报了这个错。解决:原创 2017-04-30 13:10:51 · 2093 阅读 · 0 评论 -
关于测试Shiro时结果与实际不一致时
在编写测试例子的时候,我发现测试结果与我分析的结果不一致。。 代码:Factory<org.apache.shiro.mgt.SecurityManager> factory = new IniSecurityManagerFactory("classpath:ini/shiro.ini");这里我加载的是一个最进本的ini文件,没有设置Realm。Username原创 2017-10-21 15:59:10 · 227 阅读 · 0 评论 -
关于python:AttributeError: module 'xxx' has no attribute 'xxx'的错误解决
运行python程序时,也许会出现这样的错误:AttributeError: module ‘xxx’ has no attribute ‘xxx’,如: 在我的学习中,解决该错误有两种方法手动安装该模块 检查文件名 这个方式看起来很傻,但是却是新手经常会犯的错,原因是因为自己的文件名称和要使用的模块重名了: 只需要更改文件名即可...原创 2018-05-05 10:52:53 · 156666 阅读 · 47 评论 -
关于python:ocal variable ‘xxx’ referenced before assignment的错误解决
代码举例如下: 在函数外面定义了一个变量 xxx ,然后在函数里面引用这个变量,并改变它的值,编译器提示: Unresolved reference ‘xxx’ This inspection detects names that should resolve but don’t. Due to dynamic dispatch and duck typing, this is pos...原创 2018-05-05 14:54:06 · 75506 阅读 · 5 评论