zoukankan      html  css  js  c++  java
  • Tomcat设置-Dfile.encoding=UTF-8 系统默认文件编码

    Windows环境下:
    修改apache-tomcat-xxxxxxincatalina.bat

    tomcat7.X以下加上:

     set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%的后面加上 -Dfile.encoding="UTF-8"
    
    • 1

    tomcat7.X加上:

      set "JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG% -Dfile.encoding=UTF-8"

    例:tomcat7.0.11 
    
    @echo off
    set JAVA_OPTS=%JAVA_OPTS% -server -Xms4096m -Xmx4096m -XX:MaxNewSize=3072m -XX:PermSize=4096M -XX:MaxPermSize=4096m
    
    rem Licensed to the Apache Software Foundation (ASF) under one or more
    rem contributor license agreements. See the NOTICE file distributed with
    rem this work for additional information regarding copyright ownership.
    rem The ASF licenses this file to You under the Apache License, Version 2.0
    rem (the "License"); you may not use this file except in compliance with
    rem the License. You may obtain a copy of the License at
    rem
    rem http://www.apache.org/licenses/LICENSE-2.0
    rem
    rem Unless required by applicable law or agreed to in writing, software
    rem distributed under the License is distributed on an "AS IS" BASIS,
    rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    rem See the License for the specific language governing permissions and
    rem limitations under the License.
    
    set "JAVA_OPTS=%JAVA_OPTS% %JSSE_OPTS% -Dfile.encoding=UTF-8" 
    if "%OS%" == "Windows_NT" setlocal
    

      

     
     
  • 相关阅读:
    2020软件工程作业04(2.0)
    2020软件工程作业03
    软件工程作业02
    2020软件工程作业02
    2020软件工程作业01
    2020软件工程个人作业06——软件工程实践总结作业
    2020软件工程作业05
    2020软件工程作业00——问题清单
    2020软件工程作业04
    2020软件工程作业02
  • 原文地址:https://www.cnblogs.com/ygrxh/p/14086674.html
Copyright © 2011-2022 走看看