我在将数据拼接成XML作为参数传给SQL的时候,在TOMCAT中报下面的错误,应该是因为XML字符串太长的原因,请问该怎么解决呢
=== 2011-08-15 14:45:17,596 [sor6] INFO [/] - Parameters were not parsed becaus
e the size of the posted data was too big. Use the maxPostSize attribute of the
connector to resolve this if the application should accept large POSTs.
=== 2011-08-15 14:45:17,606 [sor6] ERROR IDACall - Top-level servlet error:
java.lang.IllegalStateException: Post too large
=== 2011-08-15 14:45:17,596 [sor6] INFO [/] - Parameters were not parsed becaus
e the size of the posted data was too big. Use the maxPostSize attribute of the
connector to resolve this if the application should accept large POSTs.
=== 2011-08-15 14:45:17,606 [sor6] ERROR IDACall - Top-level servlet error:
java.lang.IllegalStateException: Post too large
可以通过修改catalina.bat(bin文件夹下)
set CATALINA_OPTS=-Xms100M -Xmx200M
set JAVA_OPTS=-Xms100M -Xmx200M
来扩大或者修改server.xml <Connector port="8080" redirectPort="8443" acceptCount="100" maxPostSize="0/>
设置为0 就不会检测postSize了