Spring integrates spring MVC and hibernate
The previous article used maven to build a web environment, which records how to use spring to integrate spring MVC and hibernate, that is, spring + spring MVC + Hibernate framework integration.
Step 1: configure spring first
Configure the spring configuration file applicationContext.xmls
1 <?xml version="1.0" encoding="UTF-8"?>
2 & ...
Added by HHawk on Fri, 03 Apr 2020 22:00:59 +0300
Spring Boot @Scheduled twice
When using spring cloud[Dalston.SR1] version to develop timing job, it is found that the job has been executed twice; In the following log, it is found that a job is executed by two workers (task-scheduler-1 and task-scheduler-2) in a task scheduler pool, which is strange;
2018-02-23 14:28:30.001 [task-scheduler-2] INFO c.k.micro.cfca.schedul ...
Added by bealers on Wed, 01 Apr 2020 19:41:40 +0300
springboot2 custom statsd indicator prefix
order
This paper mainly studies the custom statsd index prefix of springboot2
background
micrometer is introduced in springboot2. The 1.x version of spring.metrics.export.statsd.prefix has been marked as obsolete in version 2, but the corresponding configuration items are not given in version 2.
FlavorStatsdLineBuilder
micrometer-registry-stats ...
Added by nekoanz on Wed, 01 Apr 2020 13:18:20 +0300
Configuring mybatis in spring project
There are many ways to integrate mybatis in spring, which can be fully xml configured or annotated. A simple configuration method is recorded here.
Project directory:
1. Reference the maven configuration of the jar package.
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jd ...
Added by ViralStef on Tue, 31 Mar 2020 23:20:32 +0300
Dubbo source code analysis, loading bean s in Dubbo
We can see that when Dubbo container spring is started, the spring context is started. At this time, it will parse the bean configuration file of spring. The specific parsing work is done by Dubbo config spring. We can see that the corresponding classes are referenced in the Dubbo demo provider project.
<?xml version="1.0" encoding="UTF-8"? ...
Added by cmack on Tue, 31 Mar 2020 19:32:23 +0300
The use of listener in spring boot
In business development, listeners are often used. For example, when events of the same type are triggered in multiple scenarios, it is more suitable to use listeners. There are several forms of using listeners in spring boot, which are slightly different
Customize the start of SpringApplication
SpringApplication springApplication = new S ...
Added by Hamlets666 on Sun, 29 Mar 2020 17:03:03 +0300
Qile background management system -- order management module
hello!!! I introduced it to you the other day----- Store management module Today's order module and management module are almost the same, and the implementation method can be almost the same!! But I still need to explain the order module to you, because the front-end part of the order module will give you two special tags, and let you have a d ...
Added by illzz on Thu, 26 Mar 2020 11:57:57 +0200
On skywalking's spring web plus plugin
This article refers to the original- http://bjbsair.com/2020-03-22/tech-info/5100/order
This paper mainly studies the spring web plus plugin of skywalking
DispatcherHandlerInstrumentation
skywalking-6.6.0/apm-sniffer/optional-plugins/optional-spring-plugins/spring-webflux-5.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/webflu ...
Added by litarena on Tue, 24 Mar 2020 16:59:12 +0200
Spring Boot integrates static technology FreeMarker
Original link: http://www.yiidian.com/springboot/springboot-freemarker.html
This article explains how to integrate FreeMarker in Spring Boot.
1 create project, import dependency
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
Added by Ceril on Tue, 24 Mar 2020 16:37:54 +0200
SpringBoot+Redis solves the problem of thousands of submissions in an instant
In a real development project, an exposed interface is often faced with a large number of repeated requests submitted in an instant. If you want to filter out the repeated requests and cause damage to the business, you need to implement idempotent!
Let's explain the concept of idempotent:
Any number of executions has the same impact as a ...
Added by azylka on Tue, 24 Mar 2020 03:56:42 +0200