Browse Source

get&set

bugfix/10.0
rinoux 6 years ago
parent
commit
288d0f8138
  1. 2
      designer-base/src/main/java/com/fr/start/server/FineEmbedServerActivator.java

2
designer-base/src/main/java/com/fr/start/server/FineEmbedServerActivator.java

@ -64,7 +64,7 @@ public class FineEmbedServerActivator extends Activator {
tomcat.getConnector().setURIEncoding(EncodeConstants.ENCODING_UTF_8); tomcat.getConnector().setURIEncoding(EncodeConstants.ENCODING_UTF_8);
String docBase = new File(WorkContext.getCurrent().getPath()).getParent(); String docBase = new File(WorkContext.getCurrent().getPath()).getParent();
//内置的上下文是自己定的,这里把WEB_APP_NAME一并设置了,否则下面appName是/null //内置的上下文是自己定的,这里把WEB_APP_NAME一并设置了,否则下面appName是/null
ProductConstants.WEB_APP_NAME = ProductConstants.getAppFolderName(); ProductConstants.setWebAppName(ProductConstants.getAppFolderName());
String appName = "/" + FRContext.getCommonOperator().getAppName(); String appName = "/" + FRContext.getCommonOperator().getAppName();
Context context = tomcat.addContext(appName, docBase); Context context = tomcat.addContext(appName, docBase);
Tomcat.initWebappDefaults(context); Tomcat.initWebappDefaults(context);

Loading…
Cancel
Save