Detailed configuration and concepts of Spring

Detailed configuration and concepts of Spring Spring quick start 1. Import Spring development package coordinates Import coordinates 2. Write Dao interface and implementation class Create Bean 3. Create Spring core configuration file Create applicationContext.xml 4. Configure UserDaoImpl in the Spring core configuration file Confi ...

Added by amiller099 on Sun, 31 Oct 2021 22:01:58 +0200

Day 1 of learning Spring

Day 1 of learning Spring Frame: Mybatis is used to solve the problem of interacting with the database. Spring MVC is used to replace us in writing these complex Web logic. Spring is a container framework. EJB: Enterprise Java Bean Core focus: IOC and AOP Container: manage all components; Components: those classes you write. DI: dependency inj ...

Added by semsem on Sun, 31 Oct 2021 19:43:09 +0200

Microservice - current limiting fuse

Sentinel preliminary preparation Download address: https://github.com/alibaba/Sentinel/releases Note: to download Jar package In the jar directory of sentinel, cmd executes the following command: java -Dserver.port=8180 -Dcsp.sentinel.dashboard.server=localhost:8180 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.1.jar ...

Added by idealbrain on Fri, 29 Oct 2021 14:37:44 +0300

Spring MVC JSON data interaction

In our development, the back end often needs to accept the Json string data passed from the front end. How to convert the Json string into a Java object? The back end often needs to return the Json string to the front end. How to convert the Java object data into the Json string? Review JSON JSON(JavaScript Object Notation) Comparison of JSO ...

Added by phpSensei on Fri, 29 Oct 2021 00:22:14 +0300

How to dynamically refresh @ ConfigurationProperties?

Demand causes Recently, when implementing the configuration hot update of the configuration center [Nacos in this example], we encountered the configuration bean marked with @ ConfigurationProperties, which involves the refresh problem. Here is a simple implementation method. thinking Follow the following questions to solve the problem of ...

Added by rayner75 on Wed, 27 Oct 2021 12:33:07 +0300

Message serialization spring has done so much for us that I almost can't serialize it myself

preface I don't know if you remember the slogan when we were learning servlet: "a cup of tea, a cigarette, a parameter, I'll pass it on for a day"Yes, the parameter transfer of servlet is really complex. Before the business starts, we have to verify, format and assign parameters for business development. But since we used spring, we ...

Added by powerpants on Wed, 27 Oct 2021 10:48:22 +0300

SpringBoot learning notes

This is the second study note based on SpringBoot. Due to space reasons, this note may be divided into several articles. Automatic configuration principle We take Http encoding autoconfiguration (Http encoding autoconfiguration) as an example to explain the principle of autoconfiguration //Indicates that this is a configuration class. Like ...

Added by montana111 on Mon, 25 Oct 2021 17:09:28 +0300

spring for beginners

Spin official website: Spring | Home Spring family bucket     Architecture scheme level spring struts Hibernate spring springmvc mybatis springboot     dubbox (protest with Spring chamber from 16 to 19) SpringCloud Technical level Security technology: Shiro         springSecurity Database level: hi ...

Added by randomthinker on Mon, 25 Oct 2021 13:31:19 +0300

openFeign deadly serial 9 question

Today, we will introduce a component of service invocation: OpenFeign, which is also a cruel role beyond its predecessors (Ribbon and Feign). The article contents are as follows: 2. What is Feign? Feign is also a tough role. Feign aims to make Java Http clients easier. Feign integrates Ribbon and RestTemplate to realize load balancing and ...

Added by co.ador on Mon, 25 Oct 2021 13:24:38 +0300

Spring cloud Alibaba: multi file loading and sharing configuration of Nacos configuration

Spring cloud Alibaba: multi file loading and sharing configuration of Nacos configuration 1, Load multiple configurations We already know that the correspondence between the Spring application and the configuration content in Nacos is controlled by the following three parameters: spring.cloud.nacos.config.prefixspring.cloud.nacos.config.file ...

Added by cnperry on Mon, 25 Oct 2021 10:49:01 +0300