Maven pom.xml add local jar package dependency and packaging method

When packaging Maven project, if you need to add local jar package dependency, you can choose two methods: 1. Install to local warehouse The first method is more conventional, which is applicable to the jar package to be added when it is exported by maven project and contains pom files. Just install the jar package into the local maven reposito ...

Posted by MadnessRed on Tue, 17 Mar 2020 11:13:01 -0700

Spring Learning Road 1

Spring Framework brief introduction The Spring framework was created due to the complexity of software development Purpose: To solve the complexity of enterprise application development Functionality: Replace EJB with basic JavaBean and provide more enterprise application functionality Scope: Any Java application Advantage: Open Source Free F ...

Posted by mitch.craig on Tue, 17 Mar 2020 09:45:17 -0700

Ribbon load balancing of spring cloud microservices

What is microservice? What is spring cloud? Microservice is a kind of architecture pattern, which advocates to divide an application into many tiny services. Services and services coordinate and cooperate with each other. Each service running is an independent process, and lightweight communication mechanism is adopted between services and serv ...

Posted by lplatz on Tue, 17 Mar 2020 08:32:39 -0700

Spring -- Spring IOC, annotation based automatic seedling burning

1. Parameter configuration mode of set [List,Set,Map] and configuration file [] applicationContext.xml <!--Set and configuration parameter injection mode --> <bean id="example" class="cn.goktech.entity.Example"> <property name="interest"> <list> <valu ...

Posted by CrimsonSoul on Tue, 17 Mar 2020 03:47:19 -0700

Main configuration and application of spring MVC

SpringMVC The concept of MVC Model1 mode Model 1: the combination of JSP page and JavaBean does not use the java Servlet form to write the front-end and back-end interactions, almost all of which are in the charge of JSP Model2 mode M: The Model model (JavaBean) is responsible for the data l ...

Posted by raydenl on Mon, 16 Mar 2020 22:18:19 -0700

Declarative transaction control based on XML and annotation

Article directory 1. Declarative transaction control based on XML 1.1 environment construction 1.2 transaction control configuration steps 2. Declarative transaction control based on annotation 3. Support for purely annotated transactions This paper uses the demo of account transfer to demonstr ...

Posted by mdaoust on Mon, 16 Mar 2020 04:43:06 -0700

Exception handling thrown by Spring security oauth2 ExceptionTranslationFilter

The core of Spring security is a set of filter chains. Project launch on autoconfig. The core is the Basic Authentication Filter used to authenticate the user's identity; One filter handles one authentication mode; For the username password authentication filter, Will check if it is a login requ ...

Posted by sharpmac on Mon, 16 Mar 2020 04:37:29 -0700

Redis distributed lock implementation and error case analysis

Recently, I looked at the knowledge of distributed locks. They are still used more in practice, because in the case of high concurrency, if they are not suitable for distributed locks, the data will definitely have problems, such as the problem of seconds killing commodity inventory in e-commerce pla ...

Posted by friendlylad on Mon, 16 Mar 2020 00:45:52 -0700

java version of spring cloud distributed microservice Spring Cloud Config-b2b2c small program E-commerce

This paper describes how a service reads files from the configuration center, and the configuration center reads configuration files from remote git. When there are many service instances, they read files from the configuration center. At this time, it can be considered to make the configuration center ...

Posted by rachelkoh on Mon, 16 Mar 2020 00:44:11 -0700

Spring Boot 1.5 learn 10 -- Spring Boot caching technology (spring data redis)

1. Integration steps 1.1 introduction of springdataredis starter <!-- Spring Data Redis Starter --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 1.2 write the configu ...

Posted by kelseyirene on Sun, 15 Mar 2020 01:57:24 -0700