Spring MVC file upload and download function

File upload In order to upload the file successfully, you need to set the method attribute of the form to POST and the enctype to multipart / form data. Once it is set to multipart / form data, the browser will process the form data in binary. spring cannot process the file upload by default. You need to configure the MulipartResolver in the sp ...

Posted by James25 on Thu, 02 Jan 2020 01:30:31 -0800

jquery add delete input input input box

When writing the front-end page, sometimes one or more lines of input boxes are added or reduced dynamically according to the business requirements. I saw that other people's writing is too complex before. I'll give you my simplified one for reference. To achieve the effect, click Add to add a new line of input box at the bott ...

Posted by swjohnson on Wed, 01 Jan 2020 17:28:13 -0800

Learning of servlet path jump

There are many kinds of path jumps for servlets. Let's briefly list them today. The first is to use hyperlink path to access directly, which is divided into relative path and absolute path. public class RecServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, ...

Posted by jackpf on Wed, 01 Jan 2020 14:40:35 -0800

Dodoke September 3 study notes

Syllabus 1. jsp form data change 2. Difference between form method get and post; 3. Character encoding Course notes 1, jsp form data change //First, query the database through id and display it in the form <% String id = request.getParameter("id"); String name =""; Class.forName("com.mysql.jdbc.Driver"); ...

Posted by foreverhex on Wed, 01 Jan 2020 10:01:14 -0800

Spring cloud spring boot mybatis distributed micro service Cloud Architecture Development Web Application

After completing the configuration, take a simple example. Based on the quick start project, take a simple example to render a page through Thymeleaf. @Controller public class HelloController { @RequestMapping("/") public String index(ModelMap map) { // Add a property to read from the template map.addAttribute(" ...

Posted by Paul Arnold on Tue, 31 Dec 2019 17:03:19 -0800

Get the value of iframe parent element

Getting associated fields Sometimes a child page needs to get the value of the iframe page as the associated field between the child page and the parent yemi page. First obtain the html element of the parent page through parent.document, and then transfer the value of the parent page to the child page. The parent page adds th ...

Posted by sy-co on Mon, 30 Dec 2019 08:37:03 -0800

java implementation of online editing and flow of word documents

Using pageoffice to realize document online editing and document flow 1: process Draft documents in the modified traceless mode, open them in the forced trace mode when leaders annotate their opinions, open them in the approval mode when the clerk cleans up the draft, and open the released official documents in the final read-only mode. Amon ...

Posted by Ferenc on Wed, 25 Dec 2019 12:10:17 -0800

Directory location and getting project root path

1, Directory location 1. . / is the current directory. 2. / is the parent directory. 3. / is the root directory. The root directory refers to the top directory. It is relative to the subdirectory. Under the same level of directory <link rel="stylesheet" href="css/list_table.css"/> Get parent directory afvVoltage.js ...

Posted by deras on Mon, 23 Dec 2019 09:30:25 -0800

Getting started with spring (3) using spring mvc

1. Create project / module New empty project:springMvcStudy New module: type Maven webapp, name mvcStudy 2. Set Sources and Resources for module Create two new folders under mvcStudy/src/main: java,resourcesOpen File/Project Structure/Project Settings/Modules, select mvcStudy, and click the Sources tabSet the java folder to Sources and the ...

Posted by Viper_4 on Sun, 22 Dec 2019 13:35:44 -0800

sql statement of creating table with mysql

This article uses a project to explain the sql statement of creating table with mysql. jsp freshmen check in system to see how to analyze requirements and convert them into database statements. Pay attention to write notes when creating tables, and form a good habit. The super administrator table creation statement is as fol ...

Posted by bundyxc on Sun, 22 Dec 2019 08:34:26 -0800