- 浏览: 830742 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (379)
- struts (5)
- hibernate (16)
- spring (16)
- ssh (20)
- MySQL (16)
- 数据库脚本 (2)
- DownLoad (1)
- GAE (5)
- Java (103)
- LoadRunner (2)
- VF (1)
- 学习资料 (24)
- 软件使用 (21)
- 通信类 (4)
- 生活 (3)
- J2ME (1)
- 心理学 (1)
- Linux (26)
- Android (3)
- Oracle (1)
- 面向对象概念&面试准备 (11)
- ExtJs (2)
- Google Map (1)
- Flex (47)
- 算法研究 (1)
- share (20)
- python (1)
- MongoDB (7)
- centos6 (13)
- C++ (8)
- DB2 (3)
- C# (1)
- 代码片段 (24)
- Lucene (2)
- php (1)
- NodeJS (1)
- Express (1)
最新评论
-
shua1991:
已阅,我表示同意。
Eclipse统计代码行数 -
nakedou:
写的不错,挺详细的
在CentOS中使用 yum 安装MongoDB及服务器端配置 -
sjp524617477:
好方法
Eclipse统计代码行数 -
simpletrc:
<script>ale ...
Java写到.txt文件,如何实现换行 -
csdn_zuoqiang:
Apache Ftp Server,目前是1.0.4,非常好的 ...
Apache FtpServer在64位系统下服务不能启动解决方法
<?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="8005" shutdown="SHUTDOWN"> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html --> <Listener className="org.apache.catalina.core.JasperListener" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html --> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html (blocking & non-blocking) Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL HTTP/1.1 Connector on port 8080 --> <Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> --> <!-- Define a SSL HTTP/1.1 Connector on port 8443 This connector uses the JSSE configuration, when using APR, the connector should be using the OpenSSL style configuration described in the APR documentation --> <!-- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <Engine name="Catalina" defaultHost="localhost"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> <!-- The request dumper valve dumps useful debugging information about the request and response data received and sent by Tomcat. Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.valves.RequestDumperValve"/> --> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <!-- Define the default virtual host Note: XML Schema validation will not work with Xerces 2.2. --> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/> --> </Host> </Engine> </Service> </Server>
发表评论
-
在windows 7上安装Maven2.2.1
2012-06-18 17:00 1214Maven是一个java工具,所以请确保jdk环境已经正确安装 ... -
Erlang开发环境配置
2012-05-08 11:23 12371. 从erlang官网 下载安装包并安装。 本例 ... -
Windows 7 64bit 下 Axure无法启动
2012-04-20 21:11 6306我装的是64位win7sp1系统,之前运行Axure一直正常, ... -
FatJar+Exe4j+Inno Setup 生成可执行的exe文件
2012-04-17 10:54 14241、fatjar 是Eclipse的一个免费的插件。它的 ... -
忘记windows7登录密码的解决方法
2012-02-14 19:05 1159步骤一: 找一个带有WinPE的系统光盘(我用的Ghost ... -
原型工具
2011-11-30 15:53 692http://pencil.evolus.vn/en-US/H ... -
Windows 7 重建图标缓存 命令
2011-11-24 15:19 13941. 打开任务管理器,结束Explorer.exe的进 ... -
Office 软件相关
2011-08-26 20:26 970Visio 2010中文MSDN原版+永久激活密钥 有效 ... -
Flash Builder 代码格式化工具 Flex Formatter 下载地址
2011-08-03 17:09 1263http://sourceforge.net/projects ... -
Windows下安装MongoDB
2011-08-01 14:43 29651、下载MongoDB数据库http://fastdl.m ... -
Eclipse统计代码行数
2011-05-04 11:17 12243使用Eclipse可以方便的统计工程或文件的代码行数。 ... -
word使用技巧
2011-04-29 11:21 13971:如何在word中输入方 ... -
HTTP代理上网,无法下载视频的解决办法
2010-09-17 11:30 1326选用FireFox浏览器,安装NetVideoHunter即可 ... -
Windows7作主机双网卡共享XP上网
2010-08-23 19:10 2990Windows7作主机双网卡 ... -
Eclipse快捷键
2010-08-03 17:16 1373eclipse添加注释的快捷键 多行注释 Ctrl+/ ... -
Eclipse XML自动提示DTD文件下载
2010-08-01 20:09 2467windows ——》 preferences ——》 Mye ... -
Ghost还原的时候,显示A:GHOSTERR.TXT或CRC32错误的解决方案
2010-07-29 18:51 864GHOST以下简称G。 在 ... -
MyEclipse优化设置
2010-07-25 11:12 1251第一步: 取消自动validati ... -
eclipse3.6下webRoot目录设置说明
2010-07-22 16:20 1710原文地址:http://ons.iteye.com/blo ... -
MyEclipse8.5改变默认空间workspace
2010-07-15 21:59 4038当我们用MyMyEclipse_Eclipseshiyong/ ...
相关推荐
一般我们所装的linux服务器,是中文版的,所以系统环境的编码是gbk,然而我们项目的编码是UTF-8,这就必须在tomcat的server.xml文件中修改,在两个地方添加 URIEncoding="UTF-8",具体代码如下:
经过呕心沥血的一天一夜,终于搞定SmartUpload组件的所有中文问题,为大家去除有史以来最头痛的中文问题,包括中文参数,中文文件名上传后服务器端文件名乱码问题,以及中文文件名下载问题。 这是我的中文解决终极...
经过呕心沥血的一天一夜,终于搞定SmartUpload组件的所有中文问题,为大家去除有史以来最头痛的中文问题,包括中文参数,中文文件名上传后服务器端文件名乱码问题,以及中文文件名下载问题。 这是我的中文解决终极...
经过呕心沥血的一天一夜,终于搞定SmartUpload组件的所有中文问题,为大家去除有史以来最头痛的中文问题,包括中文参数,中文文件名上传后服务器端文件名乱码问题,以及中文文件名下载问题。 这是我的中文解决终极...
问题描述 Tomcat启动时控制台日志乱码 解决方法 第一种方式 首先修改IDEA中的编码方式 修改tomcat目录下conf 配置目录下的 logging.properties文件 java.util.logging.ConsoleHandler.encoding = GBK 结果: ...
修改目的:为了解决使用HTTP Get方法传递中文参数乱码的问题 修改context.xml: 把修改成<Context reloadable="true"> 修改目的:当Web应用中的文件或者web.xml文件修改后,Tomcat服务器 会自动重新加载当前Web...
Get中文乱码问题解决方案: 修改Tomcat根目录下conf / server.xml文件,代码如下: 代码如下: ”8080″ protocol=”HTTP/1.1″ connectionTimeout=”20000″ redirectPort=”8443″ URIEncoding=”UTF-8″> 但是,...
经过呕心沥血的一天一夜,终于搞定SmartUpload组件的所有中文问题,为大家去除有史以来最头痛的中文问题,包括中文参数,中文文件名上传后服务器端文件名乱码问题,以及中文文件名下载问题。 这是我的中文解决终极...
tomcat 的配置文件 server.xml里面找到: 代码如下: ”8080″ protocol=”HTTP/1.1″ maxThreads=”... 您可能感兴趣的文章:JSP上传图片产生 java.io.IOException: Stream closed异常解决方法分享JSP中文乱码解决方法JSP
经过呕心沥血的一天一夜,终于搞定SmartUpload组件的所有中文问题,为大家去除有史以来最头痛的中文问题,包括中文参数,中文文件名上传后服务器端文件名乱码问题,以及中文文件名下载问题。 这是我的中文解决终极...
一、客户端先进行编码,服务端再解码。 客户端发送数据: var names = encodeURIComponent("电费"); names = encodeURIComponent( names); $.post("test.do?names="+name,null, function(){}...利用方式一虽然可以解决
采用2.6.4版本,彻底解决fckeditor(jsp版)上传中文文件乱码问题。 使用Tomcat应用服务器时,为了更好的支持URL地址中的中文参数问题.需要在tomcat进行如下设置: 需要修改server.xml文件的如下行: maxThreads=...
当然还有其他一些性能调优的设置,下图是我根据我机子的性能设置的一些参数值,给各位详细解释一下吧:1、URIEncoding="UTF-8":设置Tomcat的字符集。这种配置我们一般是不会设置的,因为关于乱码的转换我们会在具体...
Apache Tomcat 版本号: 8.5 ,10.0(新增) 配置方法及常见问题处理: ...4、GET方式URL乱码问题解决 5、虚拟主机配置文件 6、新增版本中javax.servlet替换为jakarta.servlet的问题及解决办法 详见发布者博客
4 GET方式URL乱码问题解决 打开 tomcat/conf/server.xml 查找下面这部分,在最后增加一段代码就可以了。 ...
为了解决中文问题修改了WebRequestContext.java类。 第149行,default.container.encoding应赋于ISO-8859-1,此处把这个值改为了encoding的值即utf-8,导致下面从httprequest中取到值转化时乱码。 代码如下: if (is...
本文档总计92页,20928个字,共分为九大模块,模块一:javaWeb入门概念(资源分类、网络通信三要素、软件架构...模块九:文件上传和下载(限制上传(文件的大小和类型)、详细代码、解决下载时文件名乱码问题) --author
网上花店(flower) 功能简介: 1, 支持商品展示, 分类搜索查看详情等 ...3, 请保证数据库默认编码为utf8, 否则可能会出现中文乱码问题 4, 项目简陋, 仅供学习参考, 如有任何问题请旺旺联系 测试用户: 前台1/1 后台1
这样解决了文件上传的中文乱码问题. 但是在控制台显示的中文内容还是乱码,但是没关系,我们没必要去看控制台下的中文 ----------------------------------------------------------------another FCKeditor2.4.2 ...