Beginners' article - spring MVC - Interpretation of DispatcherServlet source code
SpringMVC
After learning the Spring framework technology, there will be almost two groups of people:
A group of people still don't understand what this thing is for;
Others have almost understood the core idea, but do not know how to play its role.
In the Spring MVC stage, you can gradually realize the convenience brought by the Spring frame ...
Posted by Rik Peters on Sun, 06 Mar 2022 13:58:25 +0100
Springboot_ Interceptor_ Filter_ monitor
1.maven warehouse
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
2. Filter
The ...
Posted by Lynny on Sun, 06 Mar 2022 11:18:52 +0100
In depth Mybatis framework
In depth Mybatis framework
After learning Spring, we have learned how to manage a class as a Bean by the IoC container, that is, now we can use the Mybatis framework in a more convenient way. We can directly hand over SqlSessionFactory and Mapper to Spring for management, and we can use them quickly by injection.
Therefore, we need to learn how ...
Posted by Pepe on Sat, 05 Mar 2022 14:32:11 +0100
SSM small project ---------- query student information by class
1, Project introduction
The main functions of the project are: select a class from the drop-down list, and click the query button to display the table displaying student information at the bottom of the page
As shown in the figure:
Main technologies used: three SSM frameworks, AJAX, jQuery, BootStrap, etc Project objective: to i ...
Posted by steveangelis on Sat, 05 Mar 2022 11:45:01 +0100
SSM integration (they are copied and will not be configured by themselves after reading them for half a month. Here are the problems encountered in their configuration)
Construction steps
Here, the database connection pool, springmvc, mybatis and service are created separately, and then import is integrated into ApplicationContext xml
New projectGuide PackageCreate external file dB propertiesConfigure spring Dao xml: a. Associated database file b. Configure database source c. Configure bean sqlSessionFactory ...
Posted by Revlet on Sat, 05 Mar 2022 10:06:06 +0100
Summary of spring MVC learning notes [7] - ajax
brief introduction
Ajax = asynchronous JavaScript and XML. AJAX is a technology that can update some web pages without reloading the whole web page. Ajax is not a new programming language, but a technology for creating better, faster and more interactive Web applications. In 2005, Google made AJAX popular through its Google suggest. Go ...
Posted by joeywoodbury on Sat, 05 Mar 2022 09:28:39 +0100
Spring source code 6 - onRefresh() method
Spring source code 6 - onRefresh() methodHello, I'm classmate Tian, a programmer.Today, I will take you to interpret onRefresh() method of Spirng source code 6. This is one of the methods of refresh(). It seems to be an empty method, but in fact it is very, very important to improve the scalability of Spring.As the old rule, first paste the sou ...
Posted by joshuamd3 on Sat, 05 Mar 2022 03:46:47 +0100
In vue, use axios to get the back end, get the binary stream, download the file interface, and fail to get the attribute in headers: content disposition
Get binary stream file api writing
The back end here is a project written using the Spring Boot framework
I use the encapsulation here and then call the way: First, write a tool class: The name is downloadrequest js The code notes are as follows:
import axios from "axios";
/**
* api encapsulation for file download
*/
// Create an axios ob ...
Posted by Zup on Sat, 05 Mar 2022 01:11:28 +0100
springboot distributed micro service E-commerce mall learn from me about the use of springcloud Apollo in Java
This section mainly explains how to use Apollo in ordinary Java projects and Spring Boot.
Used in ordinary Java projects
Add Maven dependency of Apollo Client. The code is as follows.
<dependency>
<groupId>com.ctrip.framework.apollo</groupId>
<artifactId>apollo-client</artifactId>
<version> ...
Posted by Flinch on Fri, 04 Mar 2022 22:17:39 +0100
Re recognize the Scope of Spring
What is Spring's ropeScope, also known as scope, in Spring IoC container, refers to the request visibility range of the Bean object it creates relative to other Bean objects. The Spring IoC container has the following scopes: basic scope (singleton, prototype), Web scope (reqeust, session, globalsession), and custom scope< br/>singleton i ...
Posted by B of W on Fri, 04 Mar 2022 21:50:05 +0100