1).数据库时间和本地时间相差八小时
解决方案:将连接池的serverTimezone=UTC 替换成serverTimezone=Asia/Shanghai(Mysql8.0需要指定时区)
2.)web应用程序[book_war_exploded]创建了一个ThreadLocal,其键类型为[javax.faces.context.FacesContext$1](值为[javax.faces.context.FacesContext$1@1af09455]),值类型为[com.sun.faces.config.InitFacesContext](值为[com.sun.faces.config.InitFacesContext@23d98b),但在停止web应用程序时未能将其删除。线程将随着时间的推移而更新,以尝试避免可能的内存泄漏
解决方案:这个问题比较复杂和佛系,先尝试删掉taget 重启idea ,重新部署,更换tomcat,重启电脑等 如果还是出现这个问题,查看配置文件和jar包
3.)javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify
解决方案:mysql8.0更换了新驱动默认检验ssl 需要添加 useSSL=false
4.) Public Key Retrieval is not allowed
Caused by: com.mysql.cj.exceptions.CJException: Public Key Retrieval is not allowed at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151) at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:124) at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:151) at com.mysql.cj.protocol.a.authentication.CachingSha2PasswordPlugin.nextAuthenticationStep(CachingSha2PasswordPlugin.java:49) at com.mysql.cj.protocol.a.NativeAuthenticationProvider.proceedHandshakeWithPluggableAuthentication(NativeAuthenticationProvider.java:596) at com.mysql.cj.protocol.a.NativeAuthenticationProvider.connect(NativeAuthenticationProvider.java:202) at com.mysql.cj.protocol.a.NativeProtocol.connect(NativeProtocol.java:1449) at com.mysql.cj.NativeSession.connect(NativeSession.java:165) at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:849) ... 91 more
解决方案 :暂未解决 在连接池连接添加 allowPublicKeyRetrieval=true
官方解释
5.)java.lang.NoSuchMethodException
java.lang.NoSuchMethodException: ***.***.***.<init>() java.base/java.lang.Class.getConstructor0(Class.java:3349) java.base/java.lang.Class.getDeclaredConstructor(Class.java:2553) org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:102) org.springframework.web.method.annotation.ModelAttributeMethodProcessor.createAttribute(ModelAttributeMethodProcessor.java:142) org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor.createAttribute(ServletModelAttributeMethodProcessor.java:80) org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:102) org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121) org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:160) org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:129) org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) javax.servlet.http.HttpServlet.service(HttpServlet.java:652) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) javax.servlet.http.HttpServlet.service(HttpServlet.java:733) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
解决方案:在对应实体类添加一个无参构造方法
Comments | 67 条评论
博客作者 canadian pharmacy cialis 20mg
WOW just what I was searching for. Came here by searching for %keyword%
博客作者 walmart pharmacy online
Greetings! I’ve been following your site for a long time now and finally got the courage to go ahead and give you a shout out from Huffman Tx! Just wanted to tell you keep up the excellent work!
博客作者 online pharmacies canada
Hi mates, how is the whole thing, and what you wish for to say about this piece of writing, in my view its truly remarkable in favor of me.
博客作者 canada pharmaceuticals
great issues altogether, you just gained a brand new reader. What could you suggest in regards to your post that you made some days ago? Any sure?
博客作者 canadian pharmaceuticals online
Hi, i think that i saw you visited my blog thus i came to “return the favor”.I am trying to find things to enhance my website!I suppose its ok to use some of your ideas!!
博客作者 canada pharmaceuticals
Wonderful article! We are linking to this great article on our site. Keep up the great writing.
博客作者 canadian pharmaceutical companies
When I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I get four emails with the same comment. There has to be a means you can remove me from that service? Thanks a lot!
博客作者 canada pharmaceuticals
Why visitors still make use of to read news papers when in this technological globe everything is presented on net?
博客作者 aarp recommended canadian pharmacies
I believe this is one of the such a lot important information for me. And i’m glad reading your article. But should commentary on few common issues, The website taste is wonderful, the articles is in reality great : D. Just right activity, cheers
博客作者 apollo pharmacy online
This blog was… how do I say it? Relevant!! Finally I have found something which helped me. Thanks a lot!
博客作者 canadian pharmaceuticals online safe
Hey there! This post could not be written any better! Reading this post reminds me of my old room mate! He always kept chatting about this. I will forward this post to him. Pretty sure he will have a good read. Thanks for sharing!
博客作者 canadian drugs pharmacy
Post writing is also a excitement, if you know after that you can write otherwise it is difficult to write.
博客作者 canada drugs pharmacy
Spot on with this write-up, I really feel this website needs a great deal more attention. I’ll probably be returning to read more, thanks for the info!
博客作者 canadian pharmaceuticals
Great post.
博客作者 canadian pharmaceutical companies
This blog was… how do I say it? Relevant!! Finally I have found something which helped me. Thanks a lot!