SpringBoot code generator, no need to manually roll code from now on

preface Usually, when starting to develop a project, the database related tables will be established first, and then Controller, Service, DAO, Model and some front-end pages will be generated according to the table structure. If there are no mandatory constraints before development, and every programmer has his own coding habits, it will event ...

Posted on Fri, 22 May 2020 05:03:10 -0400 by mindevil

spring boot uses FreeMarker template

From: http://blog.csdn.net/clementad/article/details/51942629 Using FreeMarker template in spring boot is very simple and convenient. It only needs a few steps: 1. Introduce dependency: <dependency>       <groupId>org.springframework.boot</groupId>       <artifactId>spring-boot-starter-freemarker</artifactI ...

Posted on Sat, 02 May 2020 21:30:46 -0400 by exnet

Keyclock custom page development

1. Development mode Subject type Account - Account management Admin - Admin console Email - Emails Login - Login forms Welcome - Welcome page create themes HTML templates (Freemarker Templates) Images Message bundles Stylesheets Scripts Theme properties Theme development Strictly according to the file directory, file name, file format, opt ...

Posted on Sun, 26 Apr 2020 07:08:02 -0400 by invisionx

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