转自: https://www.cnblogs.com/EasonJim/p/8339600.html

本文介绍如何在 Ubuntu 系统上搭建 OpenVPN 服务。

文章导读:

阅读全文 »

跨域登录请求时,一直显示未登录,但后台已设置运行CROS跨域请求。
通过Fiddler抓包发现登录数据没有问题,但请求未携带cookies,后台无法获取cookie。原因是两次请求不是同一个sessionid,服务器端,认为还没有登陆。

解决方法是:
允许客户端带上cookie,ajax设置
xhrFields:{
withCredentials:true
},

阅读全文 »

springboot异常:java.lang.NoClassDefFoundError: antlr/RecognitionException解决

1
java.lang.NoClassDefFoundError: antlr/ANTLRException    at org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTranslator(ASTQueryTranslatorFactory.java:58)    at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:98)    at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:80)    at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:98)    at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)    at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)    at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1760)    at DataAccess.WKS.Repositories.WksRepositoryBase.LoadAllData(WksRepositoryBase.java:193)    at Run.main(Run.java:13)Caused by: java.lang.ClassNotFoundException: antlr.ANTLRException    at java.net.URLClassLoader$1.run(Unknown Source)    at java.net.URLClassLoader$1.run(Unknown Source)    at java.security.AccessController.doPrivileged(Native Method)    at java.net.URLClassLoader.findClass(Unknown Source)    at java.lang.ClassLoader.loadClass(Unknown Source)    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)    at java.lang.ClassLoader.loadClass(Unknown Source)    ... 9 more
阅读全文 »