Getting started with ASP.NET MVC - using database (SQL server)

Create a connection string and use SQL Server LocalDB MovieDBContext the class you create will handle the task of connecting to the database and map the Movie object to the database record. But one question you might ask is how to specify the database to which it will connect. In fact, it is not necessary to specify the database to use, and th ...

Added by tjohnson_nb on Sun, 28 Nov 2021 19:56:59 +0200

Source code analysis of dependency injection in Spring

Underlying schematic flow chart of dependency injection: https://www.processon.com/view/link/5f899fa5f346fb06e1d8f570 1, How many dependency injection methods are there in Spring? First, there are two types: 1. Manual injection 2. Automatic injection 1. Manual injection When defining beans in XML, it is manual injection, because progr ...

Added by Danno13 on Sat, 20 Nov 2021 08:04:44 +0200

Component injection in container

@Configuration+@Bean Front Create User and Pet classes public class User { private String name; private Integer age; public User(){ } public User(String name, Integer age) { this.name = name; this.age = age; } public String getName() { return name; } public void setName(String n ...

Added by brandon99999 on Fri, 19 Nov 2021 16:31:29 +0200

2021.11.1 purpose and operation process of Spring MVC. Run a Hello World with Spring MVC, and understand the components of Spring MVC by combining theory with code

Servlet is a protocol, framework technology, a set of standards, a set of standards for java web development, and java Dynamic web Framework Technology. Traditional Servlet: accept the user's request, process it, and give the user a response after processing. A Servlet can only receive a corresponding user request, which will lead us to de ...

Added by JustinK101 on Mon, 01 Nov 2021 12:45:16 +0200

Spring MVC JSON data interaction

In our development, the back end often needs to accept the Json string data passed from the front end. How to convert the Json string into a Java object? The back end often needs to return the Json string to the front end. How to convert the Java object data into the Json string? Review JSON JSON(JavaScript Object Notation) Comparison of JSO ...

Added by phpSensei on Fri, 29 Oct 2021 00:22:14 +0300

Spring MVC learning notes (crazy God)

1. Review MVC 1.1 what is MVC MVC is the abbreviation of model, view and controller. It is a software design specification.It is a method to organize code by separating business logic, data and display.The main function of MVC is to reduce the two-way coupling between view and business logic.MVC is not a design pattern, MVC is an architecture ...

Added by SleepyP on Sat, 23 Oct 2021 11:37:02 +0300

Spring MVC request source code process

preface Introduction to MVC module of Spring official website: Spring Web MVC is the original web framework built on the Servlet API and has been included in the Spring Framework from the very beginning. The formal name, "Spring Web MVC," comes from the name of its source module (spring-webmvc), but it is more commonly known as "Spring ...

Added by imagineek on Thu, 21 Oct 2021 04:16:29 +0300

Three old architecture models of JSP

         In the development process of Java Web, Servlet was first responsible for the development of display layer (page). Later, because JSP has more advantages in the development of page layer, it comprehensively replaced Servlet and acted as the development of page layer.     &nbsp ...

Added by pleek on Tue, 19 Oct 2021 02:33:07 +0300

[learning notes] MyBatis learning notes

This paper is a dynamic node MyBatis tutorial My study notes. Chapter I 1. Three tier architecture (1) Functions of three layers User Interface Layer: accepts user data and displays the processing results of requests, including jsp, html, servlet, etc. Corresponding controller package; Business Logic Layer: accept the data passed from the ...

Added by hazy on Tue, 12 Oct 2021 10:26:43 +0300

File download of spring MVC framework

File download of spring MVC framework There are two ways to download files, one is to download through hyperlinks, and the other is to download by program coding. It is simple to download through hyperlink, but it is easy to expose the real location of the downloaded files, and only the files stored in the directory where the Web application i ...

Added by climbjm on Thu, 07 Oct 2021 05:01:22 +0300