- 博客(2)
- 收藏
- 关注
原创 lxml.html和lxml.etree将string解析成htmlTree的问题
一开始使用lxml.html.fromstring(),解析后到使用getroot时提示目标对象是一个htmlElement,这和说明文档里写的不一样啊…后来改用lxml.etree.fromstring(),报错解析不了,猜想是字符编码的问题,于是指定parser替换默认parser:parser = etree.HTMLParser(encoding="utf-8")html_tree = lxml.etree.fromstring(data, parser=parser)解析成功,之后再从根节
2020-09-29 10:11:03
492
原创 Springboot .jar文件运行失败报错:java.lang.IllegalArgumentException: No auto configuration classes found
莫名其妙的错误,按照网上说的导入spring-boot-maven-plugin依赖,但是没有用,偶然从某个大神那看到了不一样的解决方法试一试竟然有用。回头找不到那篇博客了,记录一下。在依赖库里找到spring-boot-autoconfigure-xxxxxxx.jar,打开其中META-INF文件夹下的spring.factories.把#Auto Configure块下的文本复制,粘贴到出问题的jar包的同名文件最后。我的具体内容是:# Auto Configureorg.springfram
2020-09-09 11:13:50
5830
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人