踩坑笔记

 

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

遇到了好多次

https://blog.csdn.net/lslk9898/article/details/73836745


Cannot resolve com.mysq.jdbc.Connection.ping method. Will use 'SELECT 1' instead.

整合spring 和mybatis做单元测试出现的问题  将jdbc驱动由5.1.12换成5.1.25就好了   可能是和druid不兼容


solr找不到schema.xml   原因是solr5以后将其改为managed-schema


使用solrj  做搜索服务的时候一直报错  原因是把下面的solr_url写成了

虽然不知道具体原因是什么  不过把/#号去掉就好了...


把springboot打包成war包部署到服务器的时候出现404....天坑  弄了好久,发现本地用了java10  服务器用了8 改了重新打包就可以了


org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:428)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:684)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

将tomcat下的server.xml  添加maxHttpHeaderSize


原文地址:https://www.cnblogs.com/helloDuo/p/9497538.html