How to configure Spring

1. XML configuration file. The dependencies and services required by a bean are specified in an XML formatted configuration file. These configuration files typically contain many bean definitions and application specific configuration options. They usually start with a bean tag. For example: <bean id="studentBean" class="org.edureka.firstSp ...

Posted on Wed, 26 Feb 2020 07:55:26 -0500 by xXx_Hobbes_xXx

Class notes on oop of java object-oriented programming in 2020

object-oriented programming 1. What is object-oriented Process oriented thinking The steps are clear and simple. What to do in the first part and what to do in the second part Process oriented is suitable for dealing with some simple problems Object oriented thought In the thinking mode of cl ...

Posted on Wed, 26 Feb 2020 07:45:35 -0500 by ziggs

10 API gateway Spring Cloud GateWay

Necessity of using gateway Summary: Service discovery enables service consumers to always find service providers Configure servers to efficiently manage the configuration of microservices Load balancing with Ribbon Using Feign to make remote calls more efficient Using Resilience4j for service fault tole ...

Posted on Wed, 26 Feb 2020 06:39:49 -0500 by chadowch

2, Object oriented programming - the introduction of classes

1. Classes in Java C language is a process oriented structure, which can be used, needs parameter transfer structure, and has natural language defects Write a program to output the names of Zhang San and Li Si Oop.java class Person { //Habitual capitalization String ...

Posted on Wed, 26 Feb 2020 06:35:30 -0500 by ofSHIZ

9, jOOQ series tutorial - add paging extension for DAO

Complete tutorial: https://jooq.diamondfsd.com/ Why extend DAO? In the previous section, I introduced that DAO generated by jOOQ has some basic CURD methods, and some query methods will be generated for each field. However, these methods are relatively simple, which are based on a single field and are not enough to face complex business scenari ...

Posted on Wed, 26 Feb 2020 05:59:27 -0500 by frih

Review the common design patterns in android -- factory pattern, abstract factory pattern

Digression: The recent epidemic data has finally won the turning point, and the number of new people has finally dropped to three figures. Depending on the local situation, all parts of the country have begun to resume work one after another. I believe that the future will be better and better. PS: ...

Posted on Wed, 26 Feb 2020 05:07:24 -0500 by cspgsl

response, request forwarding and redirection, session and cookie

1, response Response: response object. Methods provided: void addCookie: the server adds a cookie object to the client. void sendRedirect (String location) throws IOException: a way of page Jump (redirection). void setContentType (String type): set the code of the server response (set the cont ...

Posted on Wed, 26 Feb 2020 01:14:23 -0500 by sheriff

Practice: after using completable future, the program performance has been improved three times

CompletableFuture Compared with the concept of future proposed by jdk5, future supports asynchronous processing when executing, but it is still inevitable to encounter the situation of waiting in the callback process. In jdk8, there is a new concept of completable future, which supports processing data by itself after completing tasks asynchron ...

Posted on Tue, 25 Feb 2020 22:58:38 -0500 by thewabbit1

Spring | Spring injects beans through annotations in four ways

Spring Annotation Injects Bean Official definition: IoC is also called Dependent Injection (DI).It describes a process of object definition and dependency.Dependent objects are injected through construction parameters, factory method parameters, or attributes. Dependent objects are created only when ...

Posted on Tue, 25 Feb 2020 20:47:44 -0500 by power3

Big data - Notes on kafka

flume Collect logs, move, aggregate framework. Based on events. agent source //Receiving data, producer //put() //NetcatSource //ExecSource, collect tail -F xxx.txt in real time //spooldir //seq //Stress //avroSource channel //Temporary data, buffer, //Non permanent: Memory ...

Posted on Tue, 25 Feb 2020 08:54:54 -0500 by Edison