The third day of micro HR: SpringBoot integrates Freemarker

Let's talk about how SpringBoot integrates Freemarker: You need to check web and Freemarker when creating a springboot project After the project is started successfully, press shift twice to view the FreeMarkerAutoConfiguration class, which is the automatic configuration class of FreeMarket Let's talk a ...

Posted on Mon, 13 Jan 2020 04:43:36 -0500 by programmingjeff

Spring-@ControllerAdvice intercepts exceptions and handles them uniformly

In spring 3.2, @ ControllerAdvice annotation is added, It can be used to define @ ExceptionHandler, @ InitBinder, @ ModelAttribute and apply to all @ RequestMapping. Reference resources: @Controlleradvise documentation 1, Introduction Create mycontrolleradvise and add the @ controlleradvise annotation. import org.springframework.ui.Model; impo ...

Posted on Sun, 22 Dec 2019 05:45:57 -0500 by kyoru

SpringBoot's [mybatisplus] code generator

1. Overview AutoGenerator is the code generator of mybatis plus. Through AutoGenerator, you can quickly generate the code of Entity, Mapper, Mapper XML, Service, Controller and other modules, greatly improving the development efficiency. 2. Using tutorials 2.1 relevant dependence Mybatis plus supports Velocity (default), Freemarker, Beetl, and ...

Posted on Fri, 20 Dec 2019 09:05:08 -0500 by protokol

Spring boot XXL job task scheduling

I. Introduction to XXL job Take a paragraph XXL-JOB is a lightweight distributed task scheduling platform. Its core design goal is to develop quickly, learn simply, lightweight and easy to expand. Open source code and access to a number of companies online product line, out of the box.maven dependence ...

Posted on Fri, 25 Oct 2019 09:14:19 -0400 by crondeau

spring mvc view and view parser

spring provides a view parser to parse Model AndView to a specific view Here's how to use FreeMaker as a view First step is to establish the back-end controller FreeMakerController.java @SuppressWarnings("deprecation") public class FreeMarkerController extends AbstractCommandController { @Override prote ...

Posted on Wed, 02 Oct 2019 18:47:40 -0400 by tkm

JSP file upload and download

jsp: <form id="update_form" method="post" enctype="multipart/form-data"> <div class="form-group"> <div class="validate_body col-xs-9"> <input type="file" id="fileUpload" name="fileUpload"/> </div> </div> </form> java: @RequestMapping(value = ...

Posted on Sun, 22 Sep 2019 08:51:24 -0400 by jf3000

Spring MVC Source Analysis 6: View Resolution Principle of Spring MVC

Title: Spring MVC Source Analysis 6: View Resolution Principle of Spring MVC date: 2018-06-07 11:03:19 tags: - SpringMVC categories: - Backend - SpringMVC --- Turn from Spring MVC View Mechanism Detailed [Incidental Source Analysis] This series of articles was first published on my personal blog: https://h2pl.github.io/ Welcome to my CSDN colum ...

Posted on Sun, 25 Aug 2019 06:27:26 -0400 by markmil2002

Spring Boot Practice - View Resolution of Spring MVC

1. Notes In the spring-boot+spring mvc project, there are times when we need to configure some project settings by ourselves, which involves these three items, so what is the relationship between them? First, @EnableWebMvc=WebMvcConfiguration Support, using the @EnableWebMvc annotation equals extending WebMvcConfiguration Supports but does not ...

Posted on Sun, 11 Aug 2019 15:56:44 -0400 by killah

8-4 Intelligent Sales 2

1. Course Introduction CRUD operation (process operation idea to know) Freemarker-velocity 3. Code Generator [Careful] Controller Dao domain service JSP JS - all available Generate code 1. Intelligent Sales CRUD Backstage @Controller @RequestMapping("/employee") public class EmployeeController { ...

Posted on Mon, 05 Aug 2019 02:46:46 -0400 by Invincible

Java springmvc+freemarker Generates HTML Template Pages

freemarker: Implementing Data + Template = Output It uses ftl template file to generate HTML static file. At first he thought that he had not changed since he generated html, and here he was perplexed. Now that HTML was static, the data changed when other people accessed it, and the HTML file could not be used. Finally, it was found that every ...

Posted on Tue, 09 Jul 2019 19:13:20 -0400 by dbarron87