• 首页
  • Tomcat
  • tomcat配置域名https证书,添加80和443端口,http重定向到https

    1、修改conf/server.xml的redirectPort改成443;2、打开port=443的配置注解,并加https的配置;3、修改 conf/web.xml 在 conf/web.xml 添加如下内容,可从 http 跳转到 https

    2023.02.06
  • jar命令替换war包中的properties文件,jar解压命令,jar打包命令

    jar命令:jar -uvf xxx.war WEB-INF/classes/xxx.properties,大家注意,war在哪个目录,就在哪个目录下打开cmd,在执行上面的命令,另这个目录下要有跟你war要替换文件的一样的目录,这个命令会把你war包要替换的文件目录在当前cmd目录下找到对应的文件替换。

    2022.12.10
  • org.apache.catalina.webresources.Cache getResource

    方法如下,在Tomcat的/conf/context.xml 的 </Context>前添加以下内容,在重启tomcat解决。

    2022.09.24
  • Tomcat访问Manager报403错误,org.apache.catalina.valves.RemoteAddrValve访问ip控制

    是权限问题,说明没有权限访问Manager这个项目。<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />

    2020.12.18
  • Java中boolean默认值与Boolean默认值是不同的

    boolean默认值:false;Boolean默认值:null;根据业务需求,选择定义类型,有些地方boolean比较方便,有些地方用Boolean比较方便。

    2020.12.14
  • 在Tomcat的Host中,用Parameter设置连接数据库等参数

    例如:<parameter name="jdbc.username" override="false" value="root">

    2020.08.14
  • 在windows服务器环境下配置tomcat服务开机自启动

    进入tomcat安装目录的bin目录中,找到service.bat批处理文件,然后打开cmd命令窗口,将service.bat文件拖动到cmd命令窗口中, 然后 空格 install tomcat 回车,进行服务安装

    2020.07.01
  • VersionLoggerListener,SecurityListener,AprLifecycleListener,JasperListener,JreMemoryLeakP...

    org.apache.catalina.startup.VersionLoggerListener,SecurityListener,AprLifecycleListener,JasperListener,JreMemoryLeakPreventionListener,GlobalResourcesLifecycleListener,ThreadLocalLeakPreventionListene

    2020.06.15
  • java.lang.OutOfMemoryError: PermGen space

    说明是你的tomcat内存不够了,需要将内存配高一些,给个2G服务器的事列:set JAVA_OPTS=-server -Xms512m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512m

    2020.04.26
  • 在windows中查看和杀死tomcat进程

    查看:输入netstat -ano|findstr 8080;杀死:输入taskkill /F /PID 2316;

    2020.04.23
  • The valid characters are defined in RFC 7230 and RFC 3986

    org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

    2020.04.12
  • org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received

    Tomcat报错:org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received

    2020.04.12
  • After eviction approximately [9,271] KB of data remained in the cache

    tomcat8.5缓存问题,After eviction approximately [9,271] KB of data remained in the cache

    2020.04.12
  • Tomcat管理界面进行卸载部署undeploy项目时不能删除jar文件

    <Context reloadable="true" antiResourceLocking="true" antiJARLocking="true">

    2020.04.12
  • tomcat SSL安全证书生成 安装,并配置https协议访问

    tomcat配置https协议,运行命令:keytool -genkeypair -alias "tomcat" -keyalg "RSA" -keystore "d:\tomcat.keystore"

    2019.10.15
  • « 上一页
  • 1
  • 2
  • 下一页 »
  • 当前 / 条,共 23 条