Commit 17a61960 by 李晓钟

Merge branch 'paas-prod' into 'feature-cluster'

Paas prod

See merge request !30
parents 6ba8929a 3e1ee20c
...@@ -28,7 +28,7 @@ spring: ...@@ -28,7 +28,7 @@ spring:
redis: redis:
database: 0 database: 0
host: 116.205.173.171 host: 116.205.173.171
password: password: alfbiYAUNKgAiE9tSdH1l4idXZIaNDKkgpS84dG9dy8TlACijUTwHYlLwdd6zTng
port: 6379 port: 6379
cloud: cloud:
......
package com.wecloud.dispatch; package com.wecloud.dispatch;
import com.google.common.base.Throwables;
import com.wecloud.dispatch.common.ActionMethod; import com.wecloud.dispatch.common.ActionMethod;
import com.wecloud.dispatch.common.ApplyInfo; import com.wecloud.dispatch.common.ApplyInfo;
import com.wecloud.dispatch.common.BaseRequest; import com.wecloud.dispatch.common.BaseRequest;
...@@ -208,6 +209,7 @@ public class ActionDispatcher { ...@@ -208,6 +209,7 @@ public class ActionDispatcher {
String message = (e.getMessage() != null ? e.getMessage() : "方法调用异常"); String message = (e.getMessage() != null ? e.getMessage() : "方法调用异常");
throw new IllegalStateException(message, e); throw new IllegalStateException(message, e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
log.info("异常 ", Throwables.getStackTraceAsString(e));
Throwable t = e.getCause(); Throwable t = e.getCause();
if (t instanceof RuntimeException) { if (t instanceof RuntimeException) {
throw (RuntimeException) t; throw (RuntimeException) t;
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
ps aux|grep bootstrap-2.0|awk '{print $2}'|xargs kill -9 ps aux|grep bootstrap-2.0|awk '{print $2}'|xargs kill -9
#/data0/java_projects_jenkins/ #/data0/java_projects_jenkins/
# 启动新jar, # 启动新jar,
nohup java -jar bootstrap-2.0.jar &>/dev/null & # 带调试的启动方式
# nohup java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5503 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:NewRatio=2 -XX:SurvivorRatio=8 -XX:+HeapDumpOnOutOfMemoryError -Xms6g -Xmx6g -Xss256k -jar bootstrap-2.0.jar &>/dev/null &
# 正常的启动方式
nohup java -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:NewRatio=2 -XX:SurvivorRatio=8 -XX:+HeapDumpOnOutOfMemoryError -Xms6g -Xmx6g -Xss256k -jar bootstrap-2.0.jar &>/dev/null &
echo "run success" echo "run success"
...@@ -90,6 +90,7 @@ public class JwtFilter extends AuthenticatingFilter { ...@@ -90,6 +90,7 @@ public class JwtFilter extends AuthenticatingFilter {
*/ */
@Override @Override
protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception { protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
log.error("访问被拒绝。。。");
HttpServletRequest httpServletRequest = WebUtils.toHttp(request); HttpServletRequest httpServletRequest = WebUtils.toHttp(request);
HttpServletResponse httpServletResponse = WebUtils.toHttp(response); HttpServletResponse httpServletResponse = WebUtils.toHttp(response);
// 返回401 // 返回401
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment