Tomcat single machine multi instance

What is Tomcat? Tomcat is a core project of the Jakarta project of the Apache Software Foundation, which is jointly developed by Apache, Sun and other companies and individuals. With Sun's participation and support, the latest Servlet and JSP specifications can always be reflected in Tomcat. Tomcat 5 ...

Added by Seol on Sun, 15 Mar 2020 14:08:40 +0200

Java operator, keyboard entry, select process control statement

Java operator, keyboard entry, select process control statement operator Operator overview Arithmetic operator Numerical operation Characters and strings participate in addition operations An overview and usage of auto increasing and auto decreasing operators Assignment Operators Relational oper ...

Added by David-fethiye on Sat, 14 Mar 2020 11:58:46 +0200

Spring Boot+Spring Security: identity authentication and role authorization based on memory database

Explain (1) JDK version: 1.8 (2)Spring Boot 2.0.6 (3)Spring Security 5.0.9 (4)Spring Data JPA 2.0.11.RELEASE (5)hibernate5.2.17.Final (6)hsqldb2.4.1   1, Identity authentication and role authorization based on memory database 1.1 add dependency Add the dependency of SpringData JPA and hsqld ...

Added by ligraci on Sat, 14 Mar 2020 09:55:20 +0200

Java talking about thread pool and its principle from simple to deep

Advantages of thread pool The main task of thread pool is to control the number of running threads, add tasks to the queue during processing, and then start these tasks after thread creation. If the number of threads exceeds the maximum A large number of threads are queued to wait for other threads ...

Added by mcgruff on Tue, 10 Mar 2020 12:27:09 +0200

Illustrating the builder pattern of Java design pattern

Illustrating the builder pattern of Java design pattern Building project demand Traditional way to solve the housing demand An analysis of the problems in the traditional way Basic introduction of builder mode Four roles of builder model Principle class diagram of builder mode Application and source ...

Added by Amitk on Mon, 09 Mar 2020 05:09:43 +0200

java IO series IO model foundation details

Catalog 1. BIO(Blocking IO) Application scenario: 1.2 NIO(Non Blocking IO) Application scenario: Conclusion: 3. AIO(NIO 2.0) 4. Comparison of bio, NIO and AIO: Conclusion: Java supports three kinds of network programming IO modes: BIO, NIO, AIO. The IO model is to use what kind of channel t ...

Added by padanaram on Sun, 08 Mar 2020 13:21:47 +0200

FutureTask of JDK source code

In the previous article, we introduced the ThreadPoolExecutor thread pool. When submitting execution tasks through the submit method, we mentioned FutureTask, which can track the execution status of tasks. How is it implemented in jdk? Preface JDK version No.: 1.8.0« When using ThreadPoolExecu ...

Added by vocoder on Fri, 28 Feb 2020 05:15:24 +0200

Remember to deploy and publish the Spring Boot project once, and configure SSL to support both HTTP and HTTPS

Because the company bought a new server, it needs to deploy the project to the new server and support HTTPS. After online search, it is finally completed, and now it is recorded. Configure HTTP 1. Generate certificate Use the keytool.exe provided with the jdk to generate the certificate (because ...

Added by dr.maju on Thu, 27 Feb 2020 10:41:31 +0200

[Java] object oriented: static static attribute / method / code block

Static modifies the properties or methods of a class Instance property is the independent memory space (multiple copies) held by each object. If the object is modified unilaterally, other objects will not be affected. Static attribute, the instance attribute decorated by static, is. Static property i ...

Added by fxchain on Mon, 24 Feb 2020 13:58:35 +0200

Four methods of transferring data to page in Spring MVC

When we used Servlet + JSP to develop web applications, we usually used the four scopes of Servlet: request,session,page,application to pass values to the page. Spring MVC certainly supports the native APIs of these servlets, but it also provides us with more powerful API support. Let's discuss how spri ...

Added by cyberdwarf on Sat, 22 Feb 2020 11:46:10 +0200