spring boot transaction does not work

Configured with springboot @EnableTransactionManagement @Transactional But things don't work at all. First, the first point: Spring's AOP transaction management is rollback for runtimeException by default, which is unchecked exceptions. unchecked exception exceptions are subclasses of runtimeException. Do not roll back if you encounter check ...

Posted by activeserver on Sun, 29 Mar 2020 17:11:06 +0200

Interesting Spring: Understanding Aware, Asynchronous Programming, Scheduled Tasks

Hello, I'm Silent Wang Er, a programmer as tall as Huang Jiaju and as beautiful as Liu Dehua (I don't trust to watch around friends).From the age of the two idols, you can tell that I'm over 10 years old, but to be honest, I've always believed that I'm only 18 because learning makes me young.This article is going to talk about "Spring's A ...

Posted by twilightnights on Sat, 28 Mar 2020 03:02:22 +0100

Interpreter Model for Architect's Inner Work, known as Moss Password

Interpreter Pattern refers to a given language that defines a representation of its grammar and defines an interpreter that uses that representation to interpret sentences in the language.It is a mode of parsing according to the prescribed grammar. For example, a compiler can interpret source code compilation as machine code so that the CPU can ...

Posted by bassdog65 on Fri, 27 Mar 2020 08:07:01 +0100

Set up eureka,gateway,admin,redis,docker series. Redis and redisapi are together

This chapter covers the redis interface Aspect signature swagger2 1. Install redis on Linux centOS server. Go to the Internet for specific installation commands. It's relatively simple. I used the config set maxmemory policy volatile LRU policy 2. Create an empty module project Add pom dependency <dependencies> <dependency> ...

Posted by l00ph0le on Thu, 26 Mar 2020 16:09:58 +0100

Spring Boot integrates Redis and JavaMailSender to realize mailbox registration

Opening chapter Today's websites basically have the function of email registration. After all, they can send users some spam recommendations on a regular basis It is very important. To get back to the point, first of all, we need to make a few points clear ==What information do you need for email registration? = = Basic: email address, passwo ...

Posted by N-Bomb(Nerd) on Wed, 25 Mar 2020 17:59:45 +0100

Java integrated Alibaba fish platform SMS service sends verification code to mobile phone

Click to go to: Alibaba big fish - error code of SMS interface call (error reason and handling method) Previous: Alibaba big fish SMS service - sending verification code and SMS notice User registration -- SMS verification code (Java integrated Alibaba big fish SMS service) 1, analysis 2. Back end code 2.1. Alibaba big fish tool class (smutil ...

Posted by yoost on Wed, 25 Mar 2020 16:10:09 +0100

Wu university students use Python to knock out Cherry Blossom open (with source code)

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! This year's Wuhan University is not as crowded as before, but the beautiful cherry blossom is still blooming alone in spring Wuda has opened a live broadcast of Cherry Blossom ...

Posted by vidhatanand on Wed, 25 Mar 2020 10:32:13 +0100

How to simplify the Bean configuration of Spring

1 simplified configuration Spring provides a simplified configuration for literals, reference beans, and collections, so if you don't use the special features in the complete configuration, it is recommended to try to use a simplified configuration. 1.1 face value 1.1.1 literal attribute Before simplification: <property name="na ...

Posted by ruttiger on Sat, 21 Mar 2020 18:00:34 +0100

How to get the annotated annotation according to the annotation?

Give an example: For example, you should know that the @ Repository, @ Service, @ Controller annotations in the Spring framework are all marked by the @ Component annotation in the source code Question: Can you find the classes marked by @ Repository, @ Service, @ Controller by scanning @ Component annotation in native reflection or Spring ...

Posted by zuessh on Sat, 21 Mar 2020 16:53:28 +0100

Simple use of mybatis auto generation interface plug-in

About the use of the mybatis generator plug-in, the main task is to write the configuration file of the plug-in. The database information used in this instance is as follows. The database name is world, including three tables: city, country, and country The structure of the city table is as follows: The country table structu ...

Posted by crusty_php on Fri, 20 Mar 2020 16:49:15 +0100