Teach you how to deploy spring boot project to Alibaba cloud tutorial and install java web development environment jdk and Tomcat
Previous articlesSpring boot project deployed to Alibaba cloud tutorial (1) successfully connected to remote ECs and configured Alibaba cloud security group
We have been able to visit our Cloud server Now, install the application in it.Tutorial jdk, tomcat, mysql download address Link: https://pan.baidu.com/s/1FS1yYNqvnRJODklRnm9wog Extraction ...
Posted by aaadee on Wed, 06 May 2020 09:16:03 +0200
Installation and configuration of Tomcat server (tar.gz)
1, Installation
Install JDK before installing Tomcat. See JDK installation (bin)
1. Download and unzip Tomcat
[root@bogon src]# wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.0.M22/bin/apache-tomcat-9.0.0.M22.tar.gz
[root@bogon src]# tar xvf apache-tomcat-9.0.0.M22.tar.gz
2. Consider the ...
Posted by simonrs on Sat, 02 May 2020 05:36:44 +0200
SpringBoot+RabbitMQ learning notes RabbitMQ message persistence processing
I. Introduction
There is an autoDelete attribute in both @ Queue and @ Exchange annotations. The value is a string of boolean type. For example: autoDelete = "false".
@Queue: whether to delete the queue automatically after all consumer clients are disconnected: true: delete, false: do not delete.
@Exchange: automatically delete the ...
Posted by mslinuz on Wed, 29 Apr 2020 11:52:35 +0200
Dockerfile image making practice
If you don't know what Dockerfile is, you can check my previous blog:https://blog.51cto.com/14557905/2489466Dockerfile image production practiceThree steps for Dockerfile to create image1, Making sshd image1. Write Dockerfile file
[root@docker sshd]# vim Dockerfile
#base image
FROM centos:7
#User information
MAINTAINER this is sshd project
#B ...
Posted by keigowei on Fri, 24 Apr 2020 17:20:41 +0200
Servlet case 2: File Download
First, solve two small problems
1. Input Chinese code disorder
A small Demo can solve:
package demo;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class D ...
Posted by psymonic on Wed, 22 Apr 2020 16:53:01 +0200
It's amazing that the implementation of Servlet Filter and Spring MVC Interceptor is so simple
Preface
Creation mode: Singleton mode, factory mode, builder mode, prototype mode
Structural type: bridge mode, agent mode, decorator mode, adapter mode, facade mode, combination mode, enjoyment mode
Behavioral: observer mode, template mode, strategy mode, responsibility chain mode, state mode, iterator mode, visitor mode
introduce
In our wor ...
Posted by samyl on Mon, 20 Apr 2020 18:58:08 +0200
Integration of MINA Framework with tomcat
In the previous article, we mainly discussed how the mina framework is used in the main function, but in practice, many web projects are started through tomcat, so it is necessary to integrate the mina framework into tomcat.This article focuses on how mina can be started in tomcat. The framework used by the web is the S ...
Posted by Pioden on Thu, 16 Apr 2020 18:05:14 +0200
Tomcat deploys multiple war packages
1 Background
System: Window Server.
Installed JDK 1.8-u181 (JRE is enough, but I have the JDK installation package in hand, why not go down) and Tomcat 8.5.53.
Once installed, the environment variable is configured with JAVA_HOME, Path.JRE, no JDK.
To publish two war packages, MES and ERP.
2 Install Tomcat
I used the.exe file installation witho ...
Posted by mike97gt on Wed, 15 Apr 2020 04:05:01 +0200
On Java thread synchronization
Java thread synchronization mechanism, keywords synchronized, wait, notify/notifyAll(), join, Lock. Among them, wait, notify/notifyAll() must be used with the synchronized keyword.
The synchronized keyword can be applied to code blocks, methods, static methods, and a class.
Wait is to let the current thread enter the wait state and release th ...
Posted by aschk on Fri, 03 Apr 2020 15:09:30 +0200
The UTF-8 coding problem of Jenkins
Jenkins is easy to get cramped sometimes. I configured the code in tomcat, which is not easy to use. I started because of the problem of nginx's reverse proxy, but later found out that Tomcat became a demon. The solution is to copy my Tomcat configuration, and then add parameters and modify on my basis.
Error screenshots
...
Posted by rfrid on Thu, 02 Apr 2020 22:30:04 +0200