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 | 62 条评论
博客作者 canadian pharmaceuticals usa
Hi there friends, nice paragraph and nice arguments commented at this place, I am genuinely enjoying by these.
博客作者 canadian pharmaceuticals online
What’s up i am kavin, its my first occasion to commenting anywhere, when i read this paragraph i thought i could also create comment due to this good post.
博客作者 canadian pharmaceuticals
This is really interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your fantastic post. Also, I’ve shared your web site in my social networks!
博客作者 canadian pharmacy cialis 20mg
you are in point of fact a just right webmaster. The site loading speed is amazing. It seems that you’re doing any distinctive trick. Moreover, The contents are masterpiece. you have performed a fantastic job in this subject!
博客作者 walmart pharmacy online
Hello it’s me, I am also visiting this website daily, this web site is actually fastidious and the users are actually sharing good thoughts.
博客作者 international pharmacy
Hi to every body, it’s my first go to see of this blog; this web site contains awesome and truly excellent data in favor of visitors.
博客作者 best online international pharmacies
whoah this weblog is wonderful i really like reading your articles. Keep up the great work! You recognize, a lot of individuals are hunting around for this info, you could help them greatly.
博客作者 canada pharmaceuticals online generic
I like the helpful information you provide in your articles. I will bookmark your weblog and check again here frequently. I am quite certain I will learn lots of new stuff right here! Good luck for the next!
博客作者 canada pharmaceuticals
Unquestionably believe that which you stated. Your favorite reason appeared to be on the internet the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they just do not know about. You managed to hit the nail upon the top and also defined out the whole thing without having side-effects , people could take a signal. Will likely be back to get more. Thanks
博客作者 canadian pharmaceutical companies
My brother recommended I may like this blog. He was entirely right. This publish actually made my day. You can not consider simply how a lot time I had spent for this info! Thank you!
博客作者 canadian pharmaceutical companies
Hi there to every one, it’s really a nice for me to pay a quick visit this web page, it contains useful Information.
博客作者 canadian pharmaceuticals online
Good day! Do you use Twitter? I’d like to follow you if that would be okay. I’m definitely enjoying your blog and look forward to new updates.
博客作者 canadian pharmaceuticals online
Pretty section of content. I just stumbled upon your website and in accession capital to assert that I acquire in fact enjoyed account your blog posts. Anyway I’ll be subscribing to your feeds and even I achievement you access consistently rapidly.
博客作者 canadian pharmaceuticals online safe
Definitely believe that which you said. Your favorite justification appeared to be on the web the easiest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they just do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will probably be back to get more. Thanks
博客作者 online canadian pharcharmy
I blog frequently and I seriously appreciate your information. This article has really peaked my interest. I’m going to take a note of your website and keep checking for new information about once per week. I subscribed to your Feed as well.