Tomcat

xiaoxiao2021-03-06  40

1: Chinese issues Summary 1.1 Form encountered garbled when submitted data, because Tomcat default encoded is ISO ****, so you need to be reconciled, you can set it in Web.xml. set character encoding org.springframework.web.filter.characterencodingfilter eNCoding UTF-8

set character encoding / * 1.2 webpage contains Chinese characters (non-strict Chinese characters The format may be% 12% 23% ....), you can set in% Tomcat_Home% / Conf / Server.xml (increasing the Uriencoding property in Connector). (to be supplement) three Tomcat ANT tasks

This method is from AppFuse.

First declare a tomcattasks.properties, used to declare Tomcat's Ant task:

deploy = org.apache.catalina.ant.DeployTask install = org.apache.catalina.ant.InstallTask ​​list = org.apache.catalina.ant.ListTask reload = org.apache.catalina.ant.ReloadTask remove = org.apache. catalina.ant.RemoveTask resources = org.apache.catalina.ant.ResourcesTask roles = org.apache.catalina.ant.RolesTask start = org.apache.catalina.ant.StartTask stop = org.apache.catalina.ant.StopTask undeploy = Org.apache.catalina.ant.undeploytask Defines a Tomcat.Properties file for Tomcat parameters

# Properties for tomcat server tomcat.server = localhost tomcat.manager.URL = http: // $ {Tomcat.server}: 8080 / manager Tomcat.usename = admin tomcat.password = admin

Then it is build.xml

The following information appears in the start-up console, log4j's Warn, what is the reason for this ?? log4j: Warn no appenders Could Be Found for logger (Org.apache.catalina. Startup.tldconfig) .log4j: war4j: war4j system properly. Oh, you will take my job. This error is because the cause of log4j.properties is not found. Log4j Law is in classpath Find this file. . You can put him under Classes. Don't be so troublesome

转载请注明原文地址:https://www.9cbs.com/read-78822.html

New Post(0)