tomcat8 configures boot under CentOS 7.5

This article references This article 1, Create a new file tomcat under / etc/init.d, and add the following content: #!/bin/sh # chkconfig: 345 99 10 # description: Auto-starts tomcat # /etc/init.d/tomcatd # Tomcat auto-start # Source function library. #. /etc/init.d/functions # source networking configuration. #. /etc ...

Posted by PLaT on Sun, 03 May 2020 09:54:31 -0700

Java Web JSP

9.JSP reference resources: https://www.bilibili.com/video/BV12J411M7Sj?p=22 9.0 introduction Many predecessors said that because of the separation of front and back ends, MVC has essentially become MC, JSP has no value of learning. Therefore, the content of JSP is only a superficial understanding, even for JSTL tags. 9.1 what is JSP Java Serv ...

Posted by reivax_dj on Fri, 24 Apr 2020 01:51:15 -0700

oom caused by Java Tomcat Max HTTP header size configuration

Max HTTP header size settings server.max-http-header-size=999999999 //953m JVM parameter configuration -Xms800m -Xmx800m Write a rest api @RestController("action") public class HttpHandler { @PostMapping("/get") public String get() { return "get"; } } post access   Server OOM java.lang.OutOfMemoryError: Java heap spa ...

Posted by dellwoodbu on Tue, 21 Apr 2020 08:21:49 -0700

windows springboot+docker development environment and hello word

1. Download and install docker toolbox Download address: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ docker toolbox is a tool set, which mainly includes the following contents: Docker CLI client, used to run the docker engine to create images and containers Docker Machine. Allows you to run docker engine commands on ...

Posted by halm1985 on Fri, 17 Apr 2020 04:56:21 -0700

concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 3

Today's project, because of the use of spring asynchronous concurrent execution, this error occurred. And occasionally, especially when the project is just started, such problems may occur java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 3 at java.util.concurrent.FutureTask.report(FutureTask.java:122) ...

Posted by blacklotus on Sun, 05 Apr 2020 19:58:19 -0700

The responsibility chain pattern of Java design pattern

The responsibility chain pattern of Java design pattern Purchase approval project of school OA system: requirements are Traditional solution OA system approval, traditional design solution Basic introduction to responsibility chain mode Responsibility chain mode to solve OA system procurement approval Source co ...

Posted by mwgi2005 on Sun, 05 Apr 2020 07:41:09 -0700

dockerfile production details 1

1. Docker virtual image production practice I 1) Docker commit enables the container to be submitted as a new image. The submitted image automatically enters the image list of the current system (the contents of the container image are complete); docker commit 7ec01484db55 centos7:v1 docker images 2) Docker export can implement containe ...

Posted by nafetski on Sun, 05 Apr 2020 06:03:50 -0700

Developing web project with eclispe

1. After opening eclipse, create a new web project: new -- dynamic web project Click Finish to finish the new project! Adjust font size: window -- preferences Select basic, web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-i ...

Posted by jack5100nv on Sat, 04 Apr 2020 03:19:53 -0700

maven multi environment configuration (multi environment configuration, development environment, test environment and development environment are packaged separately)

1. Put the public configuration file in resources, the development environment, production environment and test environment in resources.dev, resources.test and resources.prod respectively 2. Set in pom.xml <build> <resources> <resource> <!--Put the corresponding unique resources(dev,tes ...

Posted by ambivalent on Fri, 03 Apr 2020 07:13:34 -0700

Spring MVC uses stub layer

Premise of use: stub dummy data is used when the interface does not exist (i.e. message 404) Entrance: In BusinessExceptionHandlerAdvice NoHandlerFoundException Exception capture method Flow chart   Where is the configuration file read? In oa/web/controller/handler/EnvironmentInit.java, EnvironmentInit implements ApplicationListener ...

Posted by david4u on Fri, 03 Apr 2020 05:10:15 -0700