The difference between spring MVC @ controller and @ RestController annotations

Official documents:         @RestController is a stereotype annotation that combines @ResponseBody and @Controller. The @ RestController annotation is equivalent to the combination of @ ResponseBody + @ Controller.   1. If you just annotate the Controller with @ RestController Methods in the Controller cannot Return jsp pa ...

Posted on Sat, 16 Nov 2019 15:48:48 -0500 by itazev

ztree right click pop-up menu add, delete and modify

Requirements, right-click the tree node, and a prompt box appears for editing and deleting   Picture.png 1: in the setting configuration, set the callback, right-click the event onRightClick:   Picture.png 2: write a function onRightClick function onRightClick(event, treeId, treeNode) { } 3: disable the d ...

Posted on Fri, 15 Nov 2019 11:19:07 -0500 by hustler

DAO design patterns for javaBean and data layers

jsp:javaBean Introduction to javaBean JavaBean is a reusable component developed in the java language. javaBean can be used in jsp development to reduce duplicate code. It is a special java class written in the java language and follows the javaBean API specification Advantage Separate html from java code for future maintenance Reduce code d ...

Posted on Wed, 13 Nov 2019 22:53:03 -0500 by Scooby Doo

9. Merchandise Modification Function of SpringMVC Annotation Development

Develop mapper Generate code using reverse engineering mybatis-generator. Develop service Add two interfaces to com.iot.learnssm.firstssm.service.ItemsService /** * Query commodity information based on id */ ItemsCustom findItemsById(Integer id); /** * Modify commodity information */ void updateItems(Integer id,ItemsCustom itemsCustom); Imple ...

Posted on Mon, 11 Nov 2019 21:52:50 -0500 by Destruction

Single file upload and multi file upload of struts 2

File upload refers to uploading the local file to the specified directory of the server and using struts to upload the file. First, set the value of the enctype attribute of the form form form to multipart / form data. Single file upload The code of file upload page is as follows <body> <s:actionerror /&gt ...

Posted on Thu, 07 Nov 2019 13:43:07 -0500 by Keith Scott

Error in starting Tomcat: JasperException: java.lang.ClassNotFoundException

After Ubuntu is installed, start tomcat9, open the test website 127.0.0.1:8080, and report an error of 500.[in HTTP protocol, 500 Internal Server Error is the response status code indicating the server-side error, which means that the requested server encounters an unexpected situation and prevents it from executing the request] Type exception ...

Posted on Mon, 04 Nov 2019 09:23:59 -0500 by waverider303

Introduction and certification of Apache Shiro framework of personal notes

Shiro framework: for system authentication and authorization Official website: shiro.apache.orgFour core functions: Authentication: a function used to identify the user's province, such as the login function (let the system know who you are) Authorization: the system grants permissions for which functions can be acc ...

Posted on Sat, 02 Nov 2019 19:13:12 -0400 by seikan

Don't believe it! The parameter value obtained by servlet may be totally unexpected!

The demo page effect is too simple to be pasted out first: The following is the Controller of spring mvc: @RequestMapping("mytest") @Controller public class ZhangTestController { private Logger log = LogManager.getLogger(); @RequestMapping(value = "toCancel") public String toCancel( HttpServletRequest request, HttpServletRespons ...

Posted on Sat, 02 Nov 2019 08:57:11 -0400 by urbansmooth

The case of layeui connecting mysql to operate CRUD

Today, we are sharing a new front-end framework, Layui, which is used to link the database for crud operation. I: resume of layui layui is a front-end UI framework written with its own module specification, which follows the writing and organization form of native HTML/CSS/JS. The threshold is very low, and it can be used as soon as it is use ...

Posted on Fri, 01 Nov 2019 19:28:15 -0400 by Pryach

An example of SSM framework -- information management system

SSM framework is a popular java web framework at present, and many small partners are also learning. Here, we will bring you a simple small example of database addition, deletion, modification and query information management system. 1. First, we create a database 2. Configure database informa ...

Posted on Fri, 01 Nov 2019 11:51:10 -0400 by ssmitra