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 条评论
博客作者 נערות ליווי
I was very pleased to uncover this great site. I need to to thank you for ones time for this fantastic read!! I definitely appreciated every bit of it and I have you bookmarked to look at new information on your blog.
博客作者 iVebrthCwAWPpjHk
@נערות ליווי uVcNyosDOtdn
博客作者 iVebrthCwAWPpjHk
eMmvonsk
博客作者 canadian pharmaceuticals online
Greetings from Florida! I’m bored to death at work so I decided to check out your website on my iphone during lunch break. I really like the info you provide here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my mobile .. I’m not even using WIFI, just 3G .. Anyhow, amazing blog!
博客作者 generic viagra online
Hi there, I read your blog on a regular basis. Your story-telling style is awesome, keep up the good work!
博客作者 pharmaceuticals online australia
What’s up friends, nice post and pleasant arguments commented at this place, I am truly enjoying by these.
博客作者 generic viagra online
This is a topic that is close to my heart… Take care! Where are your contact details though?
博客作者 canadian pharmacies-24h
Right here is the perfect web site for everyone who would like to understand this topic. You understand a whole lot its almost tough to argue with you (not that I personally would want to…HaHa). You certainly put a new spin on a subject that’s been written about for a long time. Great stuff, just excellent!
博客作者 pharmacies in canada
I’m not sure exactly why but this blog is loading extremely slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back later on and see if the problem still exists.
博客作者 canadian online pharmacies
Wonderful blog! Do you have any tips for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you advise starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused .. Any tips? Many thanks!
博客作者 online pharmacies legitimate
Tremendous things here. I’m very happy to peer your article. Thank you so much and I am taking a look ahead to contact you. Will you kindly drop me a mail?
博客作者 canadian drugs online pharmacy
It’s a pity you don’t have a donate button! I’d certainly donate to this outstanding blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will share this site with my Facebook group. Talk soon!
博客作者 canadian pharmacy
Pretty! This has been a really wonderful article. Thank you for supplying these details.
博客作者 canada pharmaceuticals
Thanks for your personal marvelous posting! I quite enjoyed reading it, you may be a great author. I will be sure to bookmark your blog and may come back from now on. I want to encourage one to continue your great posts, have a nice weekend!
博客作者 canada pharmaceuticals online
Link exchange is nothing else however it is just placing the other person’s website link on your page at suitable place and other person will also do similar for you.
博客作者 canadian pharmaceuticals for usa sales
I really like reading an article that can make men and women think. Also, thanks for permitting me to comment!