How to install Tomcat 9 on Ubuntu 20.04

This article was first published in: How to install Tomcat 9 - ITCoder on Ubuntu 20.04 This guide describes how to Ubuntu Install and configure Tomcat 9 on 20.04. Apache Tomcat is an open source Web server and Java servlet container. It is the most popular choice in the world to build Java based websites and applications. Tomcat is lightweigh ...

Added by ruttegar on Tue, 25 Jan 2022 10:11:31 +0200

Servlet learning notes

1, Servlet 1.1 introduction to Servlet Servlet is a technology for sun company to develop dynamic websun provides an interface called Servlet in these API s. If you want to develop a Servlet program, you only need to complete two small steps: 1. Write a class to implement the Servlet interface 2. Deploy the developed Java classes to th ...

Added by JimmyD on Mon, 24 Jan 2022 09:06:08 +0200

Probably the most voluminous spring source code series: Spring MVC

This paper configures spring MVC based on full annotation, so the source code analysis is annotation, but the implementation of xml is also similar. As long as you understand one way, it's not a problem to understand the other. First, briefly recall the steps of using spring MVC for xml: 1,web. The DispatcherServlet is configured on the XML, an ...

Added by Gladiator2043 on Fri, 21 Jan 2022 03:50:06 +0200

Tomcat multi instance and load balancing

Tomcat multi instance Install the jdk jdk must be installed before deploying tomcat, because jdk is the necessary environment for Tomcat to run. 1. # turn off the firewall   systemctl stop firewalld systemctl disable firewalld setenforce 0   2. # transfer the software package required to install Tomcat to the / opt directory apache-tomcat ...

Added by alimadzi on Thu, 20 Jan 2022 19:11:58 +0200

[Java][SQL Server][Tomcat] Java local server reads data and account password checks in SQL Server

Foreword: This small project uses Java Tomcat local server to realize the function of reading SQL Server data and comparing the input account password with the existing account password in the database. Java source code download link: (Resources pending review) 1 System overview 1.1 System Introduction Based on the WeChat applet, we can easi ...

Added by Ashoar on Thu, 20 Jan 2022 01:35:21 +0200

Java NIO series Tutorials - best practices of SocketChannel

SocketChannel in Java NIO is a channel connected to TCP network socket. SocketChannel can be created as follows: Open a SocketChannel and connect to a server on the networkWhen a new connection reaches the ServerSocketChannel, a SocketChannel will be created Open SocketChannel The following is a simple usage of the opening method of SocketC ...

Added by chooseodie on Tue, 18 Jan 2022 22:54:39 +0200

javaWeb project >_ < Project with me (super detail - Episode 1)

0 overview Make one jiavaweb You can finish the hand training project javaweb The application of knowledge points in the project can also exercise the logical idea of function realization. Let's take a look at the effect diagram below The project is divided into two parts. The first part mainly completes the function of student manag ...

Added by firelior on Mon, 17 Jan 2022 09:10:51 +0200

Spring Boot realizes multi picture upload and echo, and the posture is up ~

upload The code of the Controller is very simple. Because the spring MVC framework is used, you can directly connect it with MultipartFile. Because it is a multi picture upload, it is connected with an array. Note here that the parameter name should be the same as the name in < input > Values correspond to: @RequestMapping("/pic") @Resp ...

Added by rxsid on Fri, 14 Jan 2022 02:30:47 +0200

From IO to NIO to Netty

1, IO, NIO, Netty features 1.IO 1. Server blocking point server.accept(); When getting socket, InputStream read(bytes); When the input stream reads data 2. The traditional socket is a short connection and can be used as a short connection server. It cannot make a long connection. It belongs to the ask and answer mode. For example, the u ...

Added by unstable_geek on Thu, 13 Jan 2022 18:29:29 +0200

Sure enough fresh e-commerce project (25) - member's only login

introduction In the previous section E-commerce project (24) - log printing , mainly explain the basic usage of slf4j log framework. This article briefly explains how to realize unique login for member services. 1. What is a unique login? We often use QQ, wechat, nailing and other social applications. They all support logging in on the ...

Added by gOloVasTicK on Tue, 11 Jan 2022 12:14:24 +0200