Spring Cloud cognitive learning: the use of Zuul gateway
catalog
zuul
effect:
Simple example:
0. Create module
1. Import dependency:
2. Add notes to the main program:
3. Configure application.yml:
4. test
Configuration syntax:route
Add:
💡 The previous article introduced a new component, hystrix. Hystrix is a fuse, which can be used to solve the problem of service fuse and service degradat ...
Posted by BradZynda on Fri, 15 May 2020 00:58:16 -0700
Two-way authentication of https requests and SSL using the Jetty plug-in in eclipse
link
Full program source download, csdn not yet validated
1. Include both https and socket ssl test codes
2. All passwords are 123456
Environmental preparation
Install run-jetty-run plug-in in eclipse csdn download resource
java environment support, need to use keytool command
start
Generate server certificate
keytool -genkey -alias ...
Posted by SecureMind on Thu, 07 May 2020 10:31:07 -0700
main start Jetty Server web project
main start Jetty Server mode
1, web engineering starts jetty server through main
1.JettyServerLauncher
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
public class JettyServerLauncher {
private static final int DEFAULT_PORT = 8080;
private static final String DEFAULT_WEBAPP = "WebRoot";
priv ...
Posted by orionellis on Fri, 01 May 2020 14:22:37 -0700
logback configures output files for individual packages or classes
Source: https://www.cnblogs.com/izecsonLee/p/9058385.html
The most recent requirement is to output the log of a certain class to the specified file. Generally, it is output to the corresponding file according to the log level. Refer to related materials and logback tutorial, write the following demo for reference.
Â
1. Add an appender ...
Posted by fert on Thu, 02 Apr 2020 01:22:37 -0700
Installation and configuration of Jetty under Linux
Jetty introduction
Jetty is an open source servlet container that provides a runtime environment for Java based web content, such as JSP S and servlets. Jetty is written in the Java language, and its API is published as a set of JAR packages. Developers can instantiate the jetty container into an object, which ...
Posted by rix on Mon, 06 Jan 2020 16:57:05 -0800
[JVM] troubleshooting
The call scenario of jetty is: in order to support the annotation mode in the Servlet specification (so that it is no longer necessary to describe the deployment of the Servlet in the web.xml file and simplify the development process), jetty will scan the class and lib packages when it starts, register the Servlet and Listener declared in the a ...
Posted by fukas on Sat, 30 Nov 2019 18:18:10 -0800
6. Spring cloud: from incomprehension to abandonment, Chapter 5
Spring cloud: from incomprehension to abandonment, Chapter 5
I. zuul routing gateway
1. zuul overview
Brief introduction: unified access gateway of external interface.
Zuul includes two main functions of request routing and filtering:
The routing function is responsible for forwarding the external request to the specific microservice ins ...
Posted by mattd8752 on Wed, 06 Nov 2019 01:56:32 -0800
spring boot with solr
1. Download solr version
http://archive.apache.org/dis...
After decompression, enter the bin directory, open cmd at the current location, and start it in jetty mode:
solr start -p 8983
Stop a single specified port
solr stop -p 8983
Stop all
solr stop -all
2. Enter management interface configuration
http://localhost:8983/solr
Use the Core Admin ...
Posted by greg_soulsby on Tue, 05 Nov 2019 06:07:37 -0800
A problem with 250W views on Stack Overflow: your object is lost
When browsing Stack Overflow, I found that the most popular problem is: what is NullPointerException (java.lang.NullPointerException), what causes it, and whether there is a good way or tool to track the cause of it?
I didn't expect to see as many as 2.5 million views of this problem! So, I think it's time to sort out the best answers and share ...
Posted by maybl8r03 on Sun, 20 Oct 2019 19:43:41 -0700
Automatic Configuration Principle of SpringBoot Embedded Tomcat
If you read this article before you read it Analysis of SpringBoot Automatic Assembly Principle It should be easier.
Preparation
We know that the secret of SpringBoot's automatic assembly is in the spring.factories file under the package org. spring framework. boot. autoconfigure, and the principle of embedding Tomcat is a configuration class ...
Posted by farkewie on Tue, 08 Oct 2019 09:18:00 -0700