
问题
zb0567
这个作者很懒,什么都没留下…
展开
-
jquery.datatables 缓存问题的解决办法
我在使用的时候遇到了一个很奇怪的问题。我的代码是这样写的 var oTable; oTable =$(‘#example’).dataTable({ “bProcessing”: true, “bServerSide”: true, “sPaginationType”: “full_numbers”, “aaSorting”: [[ 5, "desc" ]], “a原创 2012-01-06 19:59:40 · 4078 阅读 · 0 评论 -
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: Ixml. Do you need
原因:版本更新解决方法:Ixml 更改为 html.parser 问题解决原创 2018-10-13 12:33:36 · 468 阅读 · 1 评论 -
NotImplementedError: Only the following pseudo-classes are implemented: nth-of-type.
原因:解释版本不同解决方法:nth-child(2)更改为 nth-of-type(2)问题解决原创 2018-10-13 12:42:06 · 2579 阅读 · 1 评论 -
TypeError: object of type 'Response' has no len()
soup = BeautifulSoup(wb_date,'html.parser')wb_date 改成 wb_date.text 或者wb_data.content问题解决原创 2018-10-13 15:52:48 · 903 阅读 · 0 评论 -
django开发bug
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbb in position 172: invalid start byteutf-8编码,将eclipse项目编码设置UTF-8 即可,搞定中文识别问题ValueError: The view blog.tests.testdb didn't return an HttpRespo...原创 2018-10-08 08:53:11 · 302 阅读 · 0 评论 -
mongo2018-10-18T14:13:16.837+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017
mongo命令失败 负责运行数据库需要先执行mongod 负责开机原创 2018-10-18 14:16:58 · 6933 阅读 · 0 评论 -
mongod exception in initAndListen: NonExistentPath: Data directory C:\data\db\ not found., terminati
mongod 没找到路径mongod --dbpath D:\zz\mongodb-data\db更改默认数据库路径原创 2018-10-18 14:24:16 · 8067 阅读 · 0 评论 -
Could not find a version that satisfies the requirement pymongo (from versions: ) No matching distri
pip install pymongo 安装不成功解决方法:pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 秒成功原创 2018-10-18 15:04:15 · 2943 阅读 · 7 评论 -
mongodb 不能启动服务 发生服务特定错误: 100. 发生服务特定错误: 5
1、修改前期的服务在regedit进入注册表 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ 路径下 寻找mongodb修改imgpath 即可2、特定服务5cmd没有管理员权限,右键管理员权限执行即可3、特定服务100删除data\db下面的 mongod.lock storage.bson在用net sta...原创 2018-10-18 16:02:52 · 1048 阅读 · 0 评论 -
2018-10-18T16:22:46.566+0800 E QUERY [js] TypeError: db.addUser is not a function :
新版的MongoDB已经不支持addUser方法了。 改成createUser了。 db.createUser({user:"zz",pwd:"zz",roles:[{role:"root"}])创建一个数据库新用户用db.createUser()方法,如果用户存在则返回一个用户重复错误。db.createUser(user, writeConcern) user这个文档创建...转载 2018-10-18 18:02:32 · 4058 阅读 · 0 评论 -
pymongo.errors.OperationFailure: not authorized on walden to execute command { find: "sheet_lines",
添加mongod --dbpath "D:\zz\mongodb-data\data\db" --logpath "D:\zz\mongodb-data\logs\MongoDB.log" --directoryperdb --auth --serviceName MongoDB --installmongod --dbpath "D:\zz\mongodb-data\data\db" -...原创 2018-10-19 10:40:43 · 1399 阅读 · 0 评论 -
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UX
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UX在stackoverflow 上找到了类似的错误,原来是图片路径写的 有问题错误的:'C:\Users\zz\Desktop\test\'解决方法'C:\\Users\\zz\\De...原创 2018-10-17 18:43:02 · 1713 阅读 · 0 评论 -
__init__.py 彻底解决 import Unresolved import Undefined import 自己模块的问题
__init__.py文件妙用 有此神器,妈妈再也不用担心你的import了原创 2018-10-25 08:59:55 · 4664 阅读 · 2 评论 -
AttributeError: module 'matplotlib.pyplot' has no attribute 'xlable'解决办法
xlable改成xlabel难道数据改了???原创 2018-10-29 15:10:01 · 25014 阅读 · 6 评论 -
Error creating bean with name 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfigurati
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})或者@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})排除配置类原创 2019-02-16 09:31:54 · 9688 阅读 · 0 评论 -
No converter found capable of converting from type org.bson.types.ObjectId to type java.lang.Long
Spring使用MongoDb帮助文档在MongoDb里要求每个文档都需要有_id 字段,java类中有如下情况会被映射为_id字段 如果1个字段加上了 @Id (org.springframework.data.annotation.Id)注解,那么将bean保存到数据库时就会把该字段映射为文档中的_id字段 如果java对象中没有 @Id 注解,名字为id 的字段将会被映...原创 2019-02-16 09:42:09 · 6099 阅读 · 0 评论 -
npm安装babel-plugin-component 按需加载神器。。。
npm install eslint-plugin-node --savenpm install eslint-plugin-promise --savenpm install eslint-plugin-standard --savenpm i eslint-plugin-vue -snpm install eslint --save-devnpm i babel-plug...原创 2019-02-20 17:57:09 · 9123 阅读 · 0 评论 -
vba操作word删除某些页面
突然要进行word的vba操作,真心不适应,可以删除word的页面 bug:每次删除的时候都是重新计算页码,所以说需要计算好每次删除后的页面页码Sub kk1206190933() Dim wNum As Integer Dim wPag As Integer 'Dim arr(5) As Integer, i As Variant With Selection wPag =原创 2016-02-05 15:52:12 · 5597 阅读 · 0 评论 -
ORA-01861: literal does not match format string
遇到这个错误 ORA-01861: literal does not match format string语句是between ‘time1’ and ‘time2’ 查询出来是ORA-01861: 文字与格式字符串不匹配解决方法to_date('time1' , 'yyyy-mm-dd hh24:mi:ss')或者比较时间也可以将数据的时间字原创 2012-11-04 13:58:41 · 2439 阅读 · 0 评论 -
xvidcore.dll not found 的解决办法
最近在打开文件夹或者点击播放视频的时候,总是弹出xvidcore.dll not found 很让人苦恼,有些时候文件夹显示不全,或者影片卡了,点击确定继续。。有些时候没什么影响,但是烦人点 解决方案: 系统中的这个解码文件丢失了,重新安装一下XVID解码器。 下载xvidcore.dll 以后复制到windows/system32目录下。 http://dl.db原创 2012-01-06 20:28:01 · 3273 阅读 · 0 评论 -
关于discuz X2论坛更改IP地址后头像不能使用的问题解决
我原来用的127.0.0.1 端口默认为80 \wwwroot\config 然后打开config_ucenter.php文件,我们就可以看到这条语句, define(‘UC_API’,'http://127.0.0.1/uc_server”) 将127.0.0.1更改为x.x.x.x:8080 这样就可以看到头像上传swf控件了 等同的方法是在后台在UC原创 2012-01-06 19:40:27 · 3811 阅读 · 0 评论 -
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to
List abc = zzteledao.GetUser("select aa,bbfrom cc where id="+ id);List temp=(List)abc.get(0);这时会爆出如题的错误,是因为select出来的是一个object,两个项目,debug出来的像list一样,l但是转换还是出错后来改成如下 if (abc != null) {原创 2012-01-07 10:20:26 · 20200 阅读 · 0 评论 -
cannot create windows service formysql.error:0
今天系统彻底崩溃了,nnd,就是exe统统被干掉了然后重装系统,下面装mysql,配置加配置加配置,到最后一步执行的时候,到prepare satate的时候就报错郁闷了cannot create windows service formysql.error:0搜索这个错误1.系统中原先存在的“mysql”服务与新安装的mysql所创建的服务重名 在cmd里面输入sc dele原创 2012-01-09 23:41:08 · 1174 阅读 · 0 评论 -
org.apache.commons.lang.text.StrLookup缺失
遇到上述问题,莫急,估计你已经添加过common-lang 包,但是还是不行Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup at com.zz.dataAccess.Properties.main(Properties.java:10)Ca原创 2012-02-02 11:30:42 · 7208 阅读 · 0 评论 -
java.lang.UnsatisfiedLinkError: JD-Eclipse 编译错误
安装MyEclipse8.6之后,基本上各项功能ok了,寻找反编译工具,决定JD-Eclipse之后,开始打算用在线升级,悲摧的是机器不访问www.eclipseide.com,然后直接导致在输入在线更新地址后,不能寻找到下面有什么可更新插件,只好把jdeclipse_update_site.zip下载下来,解压缩到myeclipse插件里面去,然后把update文件夹下面的东西清理一把,ok原创 2012-04-15 22:01:38 · 4233 阅读 · 4 评论 -
log4j:ERROR Could not read configuration file [log4j.properties].
log4j:ERROR Could not read configuration file [log4j.properties].java.io.FileNotFoundException: log4j.properties (系统找不到指定的文件。) at java.io.FileInputStream.open(Native Method) at java.io.FileInput原创 2012-06-25 11:03:32 · 8367 阅读 · 5 评论 -
no declaration can be found for element mvc resources
在myeclipse中使用Spring有可能会有以下错误 cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'解决方法:1. 打开 windows -> preference , 弹出对话框 2. 在该转载 2012-08-29 17:22:50 · 7553 阅读 · 3 评论 -
Error configuring application listener of class org.springframework.web.context.ContextLoaderListene
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.原创 2012-08-30 15:10:25 · 5277 阅读 · 0 评论 -
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
MyEclipse下java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind异常该问题一般为Tomcat端口被占用所致,解决办法如下:1、查看Tomcat所使用的端口打开Tomcat安装目录下的conf文件夹,如D:\Program Files (x86)\Apache Software Foun转载 2012-08-31 16:42:46 · 912 阅读 · 0 评论 -
jqgrid出现undefined等问题
1 什么都搞定了,但是老是在主页上面出现 undefined确定你引用了 并确保以下顺序 刷新,你会发现一切ok。给力原创 2012-08-23 00:22:20 · 5482 阅读 · 2 评论 -
class"org.apache.commons.dbcp.BasicDataSource"not found解决方案
使用MyEclipse整合springmvc+Hibernate时,在“applicationContext.xml”中提示class"org.apache.commons.dbcp.BasicDataSource"not found。到http://commons.apache.org/dbcp/downloads.html下载jar包加入lib即可.转载 2012-09-01 22:03:36 · 1184 阅读 · 0 评论 -
几个oracle,POI,hibernate常见异常解决办法
POI的Unable to read entire block问题解决办法在网上看到一些关于这个问题的解决办法,甚至修改POI源代码,但至今没有一个完美的解决方案.我在遇到这个问题时是因为对现有excel添加时报错,新建excel时不报错,所以我先忽略这个错我,把创建excel的其他问题解决后,这个问题也就顺带解决了,就是这样.所以我推测可能是创建excel表的其他问题引起了这个问题.只要解决转载 2012-08-25 09:40:24 · 1102 阅读 · 0 评论 -
spring mvc中当XXXservice继承baseservice遇到basedao为null时的思考
当XXXservice继承baseservice遇到basedao为null时的思考 思考:在xxxService也必须注入BaseDao吗?测试private BaseDao BaseDaogetset测试失败。。。。。 怀疑是否为网上说的Spring不会自动去给BaseAction注入需要的Service Bean也就是注入parent一种是原创 2012-09-09 03:48:43 · 8168 阅读 · 1 评论 -
org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User] 异常总结
异常如下:org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:180)at org.hiberna转载 2012-09-11 15:32:54 · 799 阅读 · 0 评论 -
[org.springframework.web.multipart.MultipartFile]: Specified class is an interface
严重: Servlet.service() for servlet spring threw exceptionorg.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.web.multipart.MultipartFile]: Speci原创 2012-10-11 22:49:13 · 18461 阅读 · 6 评论 -
Uncaught TypeError: b.ha(…).nb is not a function
千万不要以为百度傻,这方面比谁都精明,防火防盗百度防,new Point 一定要用百度自己的方法,自行创造被防原创 2019-05-16 14:47:38 · 293 阅读 · 0 评论