|
|
@ -8,8 +8,10 @@ import com.fr.stable.EncodeConstants; |
|
|
|
import com.fr.stable.ProductConstants; |
|
|
|
import com.fr.stable.ProductConstants; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.startup.FineWebApplicationInitializer; |
|
|
|
import com.fr.startup.FineWebApplicationInitializer; |
|
|
|
|
|
|
|
import com.fr.third.guava.collect.Sets; |
|
|
|
import com.fr.third.springframework.web.SpringServletContainerInitializer; |
|
|
|
import com.fr.third.springframework.web.SpringServletContainerInitializer; |
|
|
|
import com.fr.third.springframework.web.context.support.AnnotationConfigWebApplicationContext; |
|
|
|
import com.fr.third.springframework.web.context.support.AnnotationConfigWebApplicationContext; |
|
|
|
|
|
|
|
import com.fr.web.socketio.WebSocketEndpoint; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import org.apache.catalina.Context; |
|
|
|
import org.apache.catalina.Context; |
|
|
|
import org.apache.catalina.LifecycleException; |
|
|
|
import org.apache.catalina.LifecycleException; |
|
|
@ -17,6 +19,7 @@ import org.apache.catalina.Wrapper; |
|
|
|
import org.apache.catalina.loader.WebappLoader; |
|
|
|
import org.apache.catalina.loader.WebappLoader; |
|
|
|
import org.apache.catalina.startup.Tomcat; |
|
|
|
import org.apache.catalina.startup.Tomcat; |
|
|
|
import org.apache.catalina.webresources.StandardRoot; |
|
|
|
import org.apache.catalina.webresources.StandardRoot; |
|
|
|
|
|
|
|
import org.apache.tomcat.websocket.server.WsSci; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.HashSet; |
|
|
@ -92,6 +95,7 @@ public class FineEmbedServerActivator extends Activator { |
|
|
|
Set<Class<?>> classes = new HashSet<Class<?>>(); |
|
|
|
Set<Class<?>> classes = new HashSet<Class<?>>(); |
|
|
|
classes.add(FineWebApplicationInitializer.class); |
|
|
|
classes.add(FineWebApplicationInitializer.class); |
|
|
|
context.addServletContainerInitializer(initializer, classes); |
|
|
|
context.addServletContainerInitializer(initializer, classes); |
|
|
|
|
|
|
|
context.addServletContainerInitializer(new WsSci(), Sets.newHashSet(WebSocketEndpoint.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// tomcat的maxPostSize会影响到post参数获取,默认2M
|
|
|
|
// tomcat的maxPostSize会影响到post参数获取,默认2M
|
|
|
|