• Wanzi spring cloud gateway 2.0, a technology for the future, let’s learn about it?


    Your praise is my greatest support. Original: the taste of little sister (WeChat official account number ID:xjjdog), welcome to share, reprint please keep the source. This article will talk about the function of API gateway and the usage of spring cloud gateway from the perspective of knowledge topology. The article is very long. You can […]

  • Nacos series: Nacos based registry


    Preface So-calledRegistry CenterIn fact, it is a product of the evolution process of distributed architecture and acts as a coordinator in the system. But why is such a coordinator role needed? Let’s start with an example to understand why a registry is needed in a distributed architecture. case Xiaoming and Xiaoxin live near the same […]

  • [source code analysis] why? Spring boot a jar can develop a web project


    problem Why to develop a web project, spring boot starter web is done with a jar? What does this jar do? Through the spring boot project, you can see that all the boot modules spring boot starter XXX are in thespring-boot-startersIn the sub module,And there is no code in all spring boot starter XXX modules, […]

  • Summary of the usage of some JSTL core tags in JSP


    1、 JSTL introduction JSTL (JavaServer Pages Standard Tag Library) is a standard specified by JCP (Java community process), which provides Java Web developers with a standard and general tag function library. And El to replace the traditional method of directly embedding Java programs (scripting) on the page, in order to improve the readability, maintainability and […]

  • In depth understanding of Java scripting API programming


    For whom is the Java scripting API prepared? Some useful features of scripting languages are: Convenient: most scripting languages are dynamically typed. You can usually create new variables without declaring variable types, and you can reuse variables to store different types of objects. In addition, scripting languages often perform many types of transformations automatically, such […]

  • Spring boot 2: use spring boot admin to monitor your application


    1. Preface Production pairsWebApplication monitoring is very necessary. We can monitor application health, performance and other indicators in near real time to deal with some emergencies in time. Avoid some faults. aboutSpring BootIn terms of application, we can use a lightweight monitoring toolSpring Boot Admin (SBA)To monitor. 2. Spring Boot Admin Spring Boot AdminGerman Software […]

  • Spring 5 source parsing 8-refresh method summary


    Without much nonsense, just go to the source code annotation: //Abstractapplicationcontextාrefresh source code public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShutdownMonitor) { // Prepare this context for refreshing. //Prepare context, set its start date and activity flag, and perform initialization of property source prepareRefresh(); // Tell the subclass to refresh the internal bean factory. […]

  • The concrete usage of toString method in Java


    We know that the toString () method of the calling object will directly output the property information of the object, but how to implement it? And how to achieve it better? Now let’s learn. Through the Java documents, we can know that the return value of tostring() method defined in the object class is of […]

  • How to generate QR code quickly in Java, python, golang and other development languages?


    There are many ways to generate free QR code! For example, the well-known forage QR code, if it’s just a simple use, it’s enough. But if you want to generate on a large scale, it’s not appropriate. Moreover, many tools are unable to add logo (like wechat QR code) to QR code. Next, I will […]

  • Nacos series: using the Java SDK of Nacos


    Maven dependence Nacos provides a complete Java SDK for configuration management, service discovery and managementNacos-0.8.0Version as an example Add Maven dependency: <dependency> <groupId>com.alibaba.nacos</groupId> <artifactId>nacos-client</artifactId> <version>0.8.0</version> </dependency> Just introducenacos-clientIt is not enough, otherwise the following error will occur during startup: [email protected] JM.Log:WARN Init JM logger with NopLoggerFactory, pay attention. [email protected] java.lang.ClassNotFoundException: org.apache.logging.log4j.core.Logger at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) […]

  • Spring boot 2 practice: automatically configure different logical beans according to conditions


    1. Preface We often have different interfaces loaded according to conditions. For example, you can query the list of files in the directory,WindowsYou can use it.CMDOfdirCommand, andLinuxNext you will uselsCommand. be familiar withSpring BootAutomatic configuration also knowsSpring BootIt can enable different configurations according to different actual situations. This is [email protected] work.This annotation specifies under what […]

  • A detailed explanation of list set and its implementation class in Java


    List collection list interface introduction Characteristic 1) . orderly; 2) . can store duplicate elements; 3) . it can be accessed through index; List<String> list = new ArrayList<>(); List. Add (“Zhang Wuji”); List. Add (“Zhang Sanfeng”); List. Add (“Zhang Ziyi”); List. Add (“Zhang Ziyi”);//OK的,可以添加 for(String s : list){ System. Out. Println (s); // ordered } […]