About backend processor - HandlerMethod

catalogue preface HandlerMethod ServletInvocableHandlerMethod InvocableHandlerMethod summary preface         Through the previous article, we know the general process of Spring MVC executing the Controller method. The important step is to find the appropriate back-end processor (handler) to execute the target method ...

Posted by rathersurf on Fri, 15 Oct 2021 17:42:03 -0700

JSON-Initial Knowledge+Resolution

1. JSON 1.1 What is JSON JSON (JavaScript Object Notation) is a lightweight data exchange format. JSON uses JavaScript syntax to describe data objects, uses a language-independent text format, and is easy to store and exchange. The network media type of JSON is application/json. 1.2 JSON Scope of Use JSON writes data objects based on ...

Posted by terfle on Thu, 14 Oct 2021 09:51:14 -0700

Data response of Spring MVC

4. Data response of spring MVC 4.1 data response mode of spring MVC 1) Page Jump  directly return string  returned by ModelAndView object 2) Write back data  directly return string  return object or set 4.2 page Jump 1. Return string form Directly return string: this method will splice the returned string with the front suffix ...

Posted by vinod79 on Mon, 11 Oct 2021 18:17:53 -0700

Use IDEA to create Maven project, integrate spring MVC and MyBatis framework, and complete a simple check-in program

catalogue Environment construction database Create Maven project Configuration item Write project Create package structure Writing back-end code pojo package util package   service package serviceimpl package controller package Create front-end display page Possible problems Tomcat startup failed. Garbled code problem We ...

Posted by davidjam on Sat, 09 Oct 2021 03:00:56 -0700

Spring MVC ------ exception handling

exception handling Exception handler Exception classification management code: import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerExceptionResolver; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRespon ...

Posted by almystersv on Tue, 05 Oct 2021 17:42:20 -0700

[Spring] IoC Control Reverse: What is IoC? What is a container? Write a simple Spring program to see!

Two months ago, I completed the Spring Framework with the Spring Framework tutorial video of Mr. Wang He, the power node of station b. During the learning process, I tapped the code involved in the video line by line, and sorted out the materials related to the introduction of Spring. Here I record my notes and some insights during the learning ...

Posted by ozman26 on Tue, 05 Oct 2021 09:27:35 -0700

Spring MVC creation and execution process

springMVC Servlet------------>jsp out.print() out.write() model1 jsp + javabean model2 MVC jsp+servlet+javabean M:model Java class 5: View view C: controller servlet frame ssh: struts1 | struts2 | springmvc spring hibernate ssm: springmvc spring mybatis jsp jstl+el | ajax:json M: Model ordinary java class mybatis: persiste ...

Posted by chris9902 on Tue, 21 Sep 2021 04:57:24 -0700

Related bug s about connecting zookeeper

Connecting zookeeper related bug s After learning about ssm recently, you need to further study dubbo and its required registration center zookeeper. However, a bug was encountered when writing an introductory case, which is as follows: Caused by: java.lang.IllegalStateException: zookeeper not connected at org.apache.dubbo.remoting.zookeepe ...

Posted by Sillysoft on Mon, 20 Sep 2021 20:38:52 -0700