Implementation of message push based on Tomcat 8 in websocket

To implement back-end push to front-end messages, the old practice is front-end polling, which is not done now. Now using websocket to implement, there are many APIs to implement websocket, which are based on Tomcat 8. 1. Build a new spring boot project first. 2. Create a new config class /** * @author smy */ @Configuration public class ...

Posted by swr on Sat, 05 Oct 2019 05:38:50 -0700

jenkins+maven+java-Tomcat -- Configuration of the project (server.xml)

Tomcat -- About Project Configuration Configuration Ports - involving three ports - modifying conf/server.xml # Close the port of tomcat <Server port="8005" shutdown="SHUTDOWN"> # Establish access to http, browser access <Connector port="8080" protocol="HTTP/1.1" connection ...

Posted by Cerberus_26 on Fri, 04 Oct 2019 18:24:46 -0700

java.sql.SQLException: No suitable driver solution (due to your own carelessness)

java.sql.SQLException: No suitable driver solution warning: com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@5466b465 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allo ...

Posted by graham23s on Fri, 04 Oct 2019 05:27:50 -0700

Docker Mirror and Docker File Making tomcat Mirror

Make tomcat image: JDK and tomcat images are constructed based on centos 7.2.1511 basic images provided by the government. First, JDK images are constructed, and then tomcat images are constructed based on JDK images. Building JDK Mirror Download the Basic Mirror Centos: docker pull centos Execu ...

Posted by neon on Wed, 02 Oct 2019 23:19:00 -0700

springboot is packaged as war and deployed to tomcat container

Step 1: Modify pom.xml to increase <packaging>war</packaging> Step 2: Remove the tomcat component <!-- spring boot web --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <!--Remove Em ...

Posted by duankr on Wed, 02 Oct 2019 09:23:57 -0700

[Zabbix 4.2 Learning Notes] 8. Data Collection - JMX Agent

JMX Agent is used to monitor the application of java class JMX Agent can realize the standardization and application management of various operating systems, system architecture, network protocols. Server side configuration: JAVA Gateway needs to be started when zabbix server is installed zabbix serve ...

Posted by accu on Mon, 30 Sep 2019 05:59:55 -0700

Java Network Programming--Chain of Responsibility in Netty

Chain of Responsibility in Netty Design Patterns-Responsibility Chain Patterns Chain of Responsibility Pattern is a behavioral design pattern that creates a chain of processing objects for requests. Each node in the chain is regarded as an object. Each node handles different requests and maintains an object of the next node automatically. W ...

Posted by coldwerturkey on Thu, 26 Sep 2019 06:54:01 -0700

Linux yum installs MySQL 8.0, jdk1.8, Tomcat 7.0

I. Installing MySQL on Linux MySQL Uninstall Before installation, we can check whether the system has MySQL installed. If we have MySQL installed, we can uninstall the original MySQL installed. rpm -qa | grep mysql Our system displays the above, then we uninstall the installed information by follow ...

Posted by sprocket on Mon, 23 Sep 2019 00:33:21 -0700

CROS Implementing Cross-Domain Authorization

CROS Implementing Cross-Domain Authorization Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 403 Questions raised If the resources we access do not require authorizatio ...

Posted by sheckel on Fri, 20 Sep 2019 02:31:07 -0700

Haproxy service tuning and configuration details

Through blog posts: Nginx+Tomcat to achieve load balancing cluster instance, can follow!!!LVS Load Balancing Cluster ExplanationWe have been able to use Nginx and LVS as load balancing cluster. They have their own characteristics. Today, we know a popular cluster scheduling tool, Haproxy. I. Overview of Haproxy Haproxy is a popular cluster sch ...

Posted by mikie46 on Thu, 19 Sep 2019 04:13:57 -0700