Amazing! Our boss doubled my springboot project concurrency in half an hour

backgroundOccasionally, there are some slow requests in the production environment, resulting in system performance degradation and throughput degradation. Here are some optimization suggestions. programme1. Under to replace tomcatMost e-commerce websites are short requests, and the response time is generally 100ms. At this time, you can repla ...

Posted on Wed, 19 Feb 2020 02:31:11 -0800 by Morbius

Spring MVC develops RESTful interface

Concept: What is REST? REST is an abbreviation for representative state transfer. restful is an interface design style. It is not a protocol, usually based on HTTP protocol; Why do you need such a style? One of the key points of RESTful is uniform interface naming rules; Each developer may have different interface styles, the most common ones a ...

Posted on Thu, 13 Feb 2020 03:52:06 -0800 by kitaeshi

Request Zuul gateway error

I started the eureka, config, zuul, a microservice, and used postman to test whether the gateway worked. com.netflix.zuul.exception.ZuulException: at org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter.findZuulException(SendErrorFilter.java:118) ~[spring-cloud-netflix-zuul-2.2.1.RE ...

Posted on Wed, 12 Feb 2020 07:59:26 -0800 by dsartain

Using nginx to realize tomcat dynamic and static separation

Environmental Science: Two centos7 servers: nginx 192.168.247.206 tomcat 192.168.247.160 [root@lamp ~]# hostnamectl set-hostname nginx [root@lamp ~]# su [root@nginx ~]# [root@nginx ~]# hostnamectl set-hostname tomcat [root@nginx ~]# su [root@tomcat ~]# Experimental steps: 1. Configure nginx first ...

Posted on Fri, 07 Feb 2020 07:45:20 -0800 by spstieng

Docker deployment nginx + tomcat

brief introduction In the production environment, many enterprises often use nginx + tomcat architecture, nginx as load balancer, reverse proxy, tomcat as node server. This architecture can also be used in the docker container.For those interested in this architecture, please refer to the blog: https://blog.51cto.com/13760351/2161850 Operati ...

Posted on Fri, 07 Feb 2020 06:35:58 -0800 by warptwist

JavaWeb -- build Web environment | JSP output

Article directory I. URL 2, B/S program architecture 3, Web server 3.1 definition 3.2 common Web servers 3.3 Tomcat server 3.3.1 definition 3.3.2 characteristics 3.3.3 directory structure after installation 3.3.4 configuration 3.3.5 boot 3.3.6 stop Tomcat Four, JSP 4.1 definition 4.2 working pri ...

Posted on Wed, 05 Feb 2020 02:56:09 -0800 by jami3

Virtual machine installation of CentOS7 and jdk1.8, mysql5.7, tomcat9

Article directory 1. Virtual machine installation CentOS7 download install Connecting to CentOS using xshell 2. Install jdk1.8 Uninstall OpenJDK download Decompress and configure environment variables 3. Install mysql5.7 Uninstall the pre installed database download install Important setup 4. I ...

Posted on Sun, 02 Feb 2020 01:40:26 -0800 by ozace

Detailed explanation of SpringBoot startup principle

1, Let's talk about the starting principle of SpringBoot Open the startup class. After debugging, you can find that the startup of spingboot is divided into two parts: 1 create SpringApplication object 2 Run method public static ConfigurableApplicationContext run(Class<?>[] primarySources, String ...

Posted on Fri, 31 Jan 2020 03:44:55 -0800 by Ab

OKHttpUtils of Android framework

OKHttpUtils is a encapsulation class of OKHttp. OKHttp has many functions, such as file upload and download, text data request get and submit post, Download picture, etc   Three jar packages need to be imported: okhttp-3.4.1.jar, okhttputils-2 ﹣ 6 ﹣ 2.jar, and okio-1.9.0.jar. I have collected them. Here is the download addr ...

Posted on Thu, 30 Jan 2020 08:01:42 -0800 by show8bbs

Servlet -- jump and information sharing among Web, three scope objects

Catalog Why do I need interaction between servlets? Jump and information sharing between Web Request forwarding URL redirection Servlet three scope objects Why do I need interaction between servlets? Interaction of Web components (Servlet/JSP): Jump between Web components, data sharing ...

Posted on Mon, 27 Jan 2020 04:14:13 -0800 by r3drain