Spring MVC integration and cases

5.5 the controller responds to the front-end request 5.4.1 response to synchronization request Response to synchronization request: the front end sends a request to the method in the controller class. After the controller method processes the request, it needs to jump to the next page Front end request <a href="book/list?pageNum=1&a ...

Posted by mlnsharma on Wed, 23 Feb 2022 03:50:03 +0100

spring transaction-2 (transaction propagation level combination description)

Transaction propagation level combination description example Configuration class package transaction; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DataSourceTransactionManager; im ...

Posted by byrt on Tue, 22 Feb 2022 17:45:37 +0100

[spring] dependency injection @ Autowired find beans that can be injected: findAutowireCandidates

@Bean s that Autowired can inject The source code of this article is based on spring-framework-5.3.10.Source location: org springframework. beans. factory. support. DefaultListableBeanFactory. findAutowireCandidates(String, Class<?>, DependencyDescriptor)This article focuses on how @ Autowired can select those beans for dependency inject ...

Posted by dude81 on Tue, 22 Feb 2022 16:54:25 +0100

Introduction to Apollo in Spring project (learning notes)

Introduction to Apollo Apollo (Apollo) is a distributed configuration center developed by Ctrip framework department. It can centrally manage the configuration of different application environments and different clusters. After the configuration is modified, it can be pushed to the application end in real time. It also has standardized per ...

Posted by bailo81 on Tue, 22 Feb 2022 14:52:56 +0100

Spring xml tag attribute day02

4)IoC configuration (XML format) 4.1)bean Name: bean Type: Label Attribution: beans tag Function: define resources in spring. Resources defined by this tag will be controlled by spring Format: <beans> <bean /> </beans> Basic properties: <bean id="beanId" name="beanName1,beanName2" class="ClassName"></bean&gt ...

Posted by p-co on Tue, 22 Feb 2022 13:45:30 +0100

Spring -- permission restriction of Security framework

preface Last blog The Security framework imposes restrictions on requests In, login authentication is added for some requests. As long as the login is successful, you can access the restricted requests. However, this model is certainly not enough. For example: Taobao product page. Merchants can modify commodity prices, but custo ...

Posted by nosmasu on Tue, 22 Feb 2022 13:05:49 +0100

JSR303 data verification Spring unified exception handling

JSR303 performs data verification 1. Add verification annotation to Bean Multiple annotations can be verified @NotBlank(message = "Brand name cannot be empty") private String name; //Cannot be empty + custom rule @NotEmpty @Pattern(regexp = "!/^[a-zA-Z]$/",message = "The search initial must be a letter") private String firstLetter; //Canno ...

Posted by Kodak07 on Tue, 22 Feb 2022 00:50:58 +0100

The Spring framework summarizes the common ways in which Spring creates bean s

The Spring framework summarizes the common ways in which Spring creates bean s 1, Common ways Spring creates bean s xml configuration file@Bean annotation@ComponentBeanDefinitionFactoryBeanSupplier 2, Use of various creation methods 1.xml configuration file First create a User entity class public class User { private String name; ...

Posted by Zhadus on Mon, 21 Feb 2022 16:42:57 +0100

SpringBoot-7 internationalization

SpringBoot-7 internationalization This article uses SpringBoot+Thymeleaf to explain the internationalization of springboot. If you don't know Thymeleaf well, you can check my previous articles. Code word is not easy to hope that you can pay attention to my official account. Your concern is my greatest support. Thank you. At the end of the arti ...

Posted by magaly on Mon, 21 Feb 2022 12:57:41 +0100

[fishing artifact] UCode Cms management system has built-in super easy-to-use code generator to solve the pain points of multi meter connection

1, Preface UCode Cms content management system is an important part of Java knowledge map and a scaffold for enterprise application software development. Current version 1.3.3. Use simple demo project Quick experience Address. (1) Project characteristics 1. Source code open source The source code is open-source, and the MIT open-source lic ...

Posted by scrubbicus on Mon, 21 Feb 2022 05:32:43 +0100