Tomcat - 双城小站

Spring Boot项目在tomcat启动时,报JDK错误解决方案


Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version in C:\html\csoft\wwwroot\content\templates\MeiYing\log_list.php on line 14

Warning: getimagesize(): Failed to enable crypto in C:\html\csoft\wwwroot\content\templates\MeiYing\log_list.php on line 14

Warning: getimagesize(https://www.a-nan.com/content/uploadfile/201807/thum-ca7c1530860742.png): failed to open stream: operation failed in C:\html\csoft\wwwroot\content\templates\MeiYing\log_list.php on line 14
报错如图: 经查,是因为项目人员在部署时,直接修改setclasspath.bat文件, 改了其中的%JAVA_HOME%,直接写死JDK路径 解决方案如下:把写死的JDK路径重新改为%JAVA_HOME% 然后使用SET JAVA_HOME的方式,来指定JDK路径
阅读全文

Tomcat修改标题和JDK路径配置


Warning: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version in C:\html\csoft\wwwroot\content\templates\MeiYing\log_list.php on line 14

Warning: getimagesize(): Failed to enable crypto in C:\html\csoft\wwwroot\content\templates\MeiYing\log_list.php on line 14

Warning: getimagesize(https://www.a-nan.com/content/uploadfile/201806/0c2b1530255143.png): failed to open stream: operation failed in C:\html\csoft\wwwroot\content\templates\MeiYing\log_list.php on line 14
在tomcat的bin目录里,新建一个叫setenv.bat的文件 文件内容如下: #设置jdk路径 set JAVA_HOME=F:\ZT_HIS\Java\jdk1.6.0_45 #设置窗口标题 set TITLE=这里是标题标题标题标题 保存后重新启动tomcat即可。 也可直接在catalina.bat里面修改标题。但是在catalina.bat的最上面,有一段对各个变量的说明。最开始有一段注释,注释不建议我们直接修改catalin...
阅读全文