Introduction and simple use of Spring
1. Introduction to spring
spring is a lightweight open source framework created by Rod Johnson in 2003 to solve the problem of high code coupling.
spring composition:
spring consists of 20 modules, the core of which are IOC and AOP
spring benefits:
In the process of web application development, ...
Posted by drkstr on Fri, 28 Feb 2020 03:52:52 -0800
Spring AOP custom label parsing
Article directory
AOP implementation based on XML -- label parsing
Annotation based AOP implementation -- label parsing
summary
Reference resources
stay Get to know Spring AOP In this paper, we have a preliminary understanding of the concept and implementation of Spring AOP. Then we will have a de ...
Posted by parkie on Fri, 28 Feb 2020 00:12:24 -0800
Detailed explanation of Spring AOP pointcut expression
1. introduction
The biggest advantage of object-oriented programming, also known as OOP (Object Oriented Programming), is that it can encapsulate business modules to achieve the purpose of function reuse. Through object-oriented programming, different templates can be assembled with each other to re ...
Posted by blackhorse on Thu, 27 Feb 2020 19:20:45 -0800
Spring Boot reads properties
Original address: http://www.yiidian.com/springboot/springboot-properties.html
There are two comments in Spring Boot that read the property values of the application.properties or application.yml file.
@Value
@ConfigurationProperties
1 @Value
1.1 Basic Types
1) Configuration
nickname=eric
age=20
2) SpringBoot Read Configuration
/**
* @Valu ...
Posted by dinger on Thu, 27 Feb 2020 09:18:41 -0800
Detail the Spring XML file -- call the parameter construction method and assign the parameter
Catalog
1, If the constructor can be called
1. Write a UserInfo class:
2. The spring XML file is configured as follows:
3. Write a Test class
2, Assign values to different types of parameters of the constructor
1. Custom object
1) Write UserInfo class
2) Configuration XML file
3) Write Te ...
Posted by Grim... on Thu, 27 Feb 2020 02:44:19 -0800
Chapter 2: basic configuration of Spring Boot2.x
Chapter 2: basic configuration of Spring Boot2.x (in continuous update Updated February 27)
Summary of this chapter
What is annotation?
What are the core annotations of Spring Boot2.x?
What is auto configuration?
How can we extend our application with auto configuration feature?
Let's take a small ex ...
Posted by 14zero on Thu, 27 Feb 2020 02:01:55 -0800
Day58 Java Web Framework phase - SSM framework exercise (user data background management, login interceptor)
SSM practice
Today's source code and materials:
Links: https://pan.baidu.com/s/19XDTuRre1A3JFlKhm2Aqbw
Extraction code: ls63
Demand:
1. Role list display and add / delete operation
2. User list display and add / delete operation
3. Delete user and role operations
4. User login operation
5. Configure ...
Posted by chombone on Thu, 27 Feb 2020 01:37:52 -0800
Notes configuration and principle of spring MVC
Spring MVC configuration and underlying principles
Import spring MVC jar package
Configure the total (front-end) controller web.xml
Add spring MVC configuration file src/appContext.xml
Write Controller and handle connection and method
The imitation of the underlying principle of spring MVC ...
Posted by nayone on Wed, 26 Feb 2020 20:29:28 -0800
Spring MVC notes method parameters and handling ajax
Forwarding and redirection of spring MVC
Configuring the view parser in spring-mvc.xml
<!-- Try parser springMVC Managerial jsp File location should be in /WEB-INF/meto/ -->
<bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<prop ...
Posted by ayampanggang on Wed, 26 Feb 2020 20:29:22 -0800
Application of java 8 in Spring Boot JPA
Article Directory
Optional
Stream API
CompletableFuture
Application of java 8 in Spring Boot JPA
In the last article we talked about how to use JPA in Spring Boot.In this article, we will explain how to use the new special habits of java 8 in Spring Boot JPA, such as Optional, Stream API, and Comp ...
Posted by Anarchatos on Wed, 26 Feb 2020 18:07:50 -0800