Category:Java

  • Spring Web integration rabbitmq code instance

    Time:2020-4-6

    This article mainly introduces the spring Web integration rabbitmq code example. The example code is introduced in detail in this article, which has a certain reference learning value for everyone’s study or work. You can refer to the following for your friends Introduce java package: In this project, only four Java packages are introduced: amqp-client-5.7.3.jar, […]

  • Design mode observer mode

    Time:2020-4-6

    concept The observer pattern (also known as publish / subscribe pattern) is a kind of behavioral pattern. It defines a one to many dependency, which allows multiple observer objects to listen to a subject object at the same time. When the subject object changes state, all observer objects will be notified so that they can […]

  • Preliminary introduction to Java GUI interface [AWT package]

    Time:2020-4-5

    An example of this article describes the Java GUI interface. To share with you for your reference, as follows: Java is not good at making graphical interface; AWT is an old package, and the latest one is swing package. Because part of the content of the operating system is called in the package, it cannot […]

  • An example analysis of layout controller in Java GUI programming

    Time:2020-4-4

    An example of this paper describes the layout controller of Java GUI programming. To share with you for your reference, as follows: The layout controller is used by the system to automatically allocate how the components are arranged in the window. By default, it is flowlayout, that is, sorting one by one. Flowlayout is panel’s […]

  • Bytebuf interpretation of the buffer of netty (2)

    Time:2020-4-4

    The first part introduces the simple read-write operation of bytebuf and the basic introduction of read-write pointer. This paper continues to interpret the basic operation of bytebuf. Read write pointer rollback The demo example here is still used in the previous section. ByteBuf buf = Unpooled.buffer(15); String content = “ytao official account”; buf.writeBytes(content.getBytes()); System.out.println(String.format(“\nwrite: ridx=%s […]

  • Spring security default form login page shows the process source code

    Time:2020-4-3

    Spring security default form login page shows the process source code This article focuses on the default form login page provided by spring security, which shows the process,Involve 1.FilterSecurityInterceptor, 2.ExceptionTranslationFilc,xmccmc,ter ,3. Defaultloginpagegeneratingfilter,It also introduces the voting mechanism of access decision manager 1. Preparation (experience spring security default form authentication) 1.1 create a spring Security Project […]

  • Java object class

    Time:2020-4-3

    It is the direct or indirect parent class of all objects, in which the methods that all objects have are defined. Equals (object obj): address value comparison object return (this == obj); The comparison of whether objects are equal or not can be achieved by duplicating the equals method.   Public int hashcode(): return hash […]

  • Analysis of monitor operation in Java GUI programming

    Time:2020-4-2

    The example of this paper describes the monitor operation of Java GUI programming. To share with you for your reference, as follows: When you click the component component in the frame, it will produce the corresponding effect, but the corresponding component must be monitored to determine the object and the operation. However, if you use […]

  • SSM integration and construction (I)

    Time:2020-4-2

    This SSM integration is built by referring to the SSM integration of shangsilicon valley. The guys who need video can go to station B to find out Our project uses Maven to build, so first create a maven project Then choose a simple project   Changing the following jar to war represents a dynamic web […]

  • An example of paint operation in Java GUI programming

    Time:2020-4-1

    This paper gives an example of paint operation in Java GUI programming. To share with you for your reference, as follows: import java.awt.*; public class Testpint { public static void main(String[] args) { // new TFPaint().lunchPaint(); new TFPaint(); } } class TFPaint extends Frame{ /* public void lunchPaint() { this.setBounds(200, 200, 640, 640); this.setBackground(Color.BLUE); this.setVisible(true); […]

  • Spring cloud gateway integrates sentinel to realize gateway current restriction

    Time:2020-3-31

    This article mainly introduces the integration of spring cloud gateway and sentinel to realize gateway current restriction. The example code is introduced in detail in this article, which has certain reference value for your study or work. You can refer to the following for your friends Note: sentinel can be used as the current limiting […]

  • Create, edit and delete excel named range in Java

    Time:2020-3-31

    Excel named range, that is, to name the specified cell range so as to reference the cell range. For example, in formula application, you can reference the specified named range for formula operation. When you create a named range, you can create it for the whole workbook, that is, workbook. Getnameranges(). Add(), which is valid […]