SpringBoot 2.0 Base Case (03): Configure system global exception mapping handling

1. Classification of Exceptions From the point of view of handling exceptions by the system, there are two main categories of exceptions: business exceptions and system exceptions. 1. Business Exceptions Business exceptions are mainly some predictability exceptions. Handle business exceptions to prompt users for operation and improve the opera ...

Posted on Fri, 09 Aug 2019 11:18:33 -0700 by wilburforce

springboot(10): Mail service

springboot is still developing at a high speed. It hasn't been noticed for more than five months. Official website It has reached 1.5.3.RELEASE version. Ready to slowly write springboot related articles, this article uses the latest version of springboot 1.5.3 for development. Sending e-mail should be one of the essential functions of the web ...

Posted on Wed, 03 Jul 2019 12:53:07 -0700 by Byron

SpringBoot Project Implements File Upload and Mail Sending

Preface This article mainly introduces the SpringBook project to realize the functions of file upload and mail delivery. SpringBoot file upload Note: If you want to get the project directly, you can jump to the bottom and download the project code through the link. Preparation for development Environmental requirements JDK: 1.8 SpringBoot: 1.5. ...

Posted on Wed, 29 May 2019 04:44:09 -0700 by Skyphoxx

Thymeleaf

Foreword: Suddenly I found myself burying a big pit, which is difficult to set up. Every little point can be taken out as a small topic (waving hands manually). I can't choose to fill the pit with tears. First, learn the knowledge that needs to be supplemented bit by bit. Introduction to Thymeleaf Pick up a little [official website] The abov ...

Posted on Tue, 07 May 2019 11:30:38 -0700 by baber_abbasi

springboot+mybatis for simple book shopping

Page effect is the same as before, recently learning spring boot so this time using spring boot to refactor code, you can use servlet+tomcat to implement before going to my blogJava Web-jsp+mybatis+servlet Simple Book Purchasing SystemJava Web-Simple Book Purchase System uses Bootstrap Here is an overview of this project: The t ...

Posted on Mon, 06 May 2019 15:25:38 -0700 by alasdair12

Spring Boot Series (V) web Development - Thymeleaf, FreeMarker Template Engine

The previous articles described how returning json data provides a good RESTful api, and now we show how to render the processed data onto the page. Spring Boot uses a template engine Spring Boot recommends template engines such as Thymeleaf, FreeMarker, Velocity, Groovy, Mustache, etc. JSP is not recommended. Spring Boot provides a good defa ...

Posted on Mon, 11 Feb 2019 03:36:17 -0800 by pneudralics

Spring boot integrates Mybatis + Thymeleaf to develop web (2)

In the last chapter, I wrote the whole background construction and logic, and also pasted the corresponding code. This chapter will see how to use Thymeleaf template engine. Spring Boot defaults to recommend Thymeleaf template, which was used to render the view layer with jsp before, but Spring Boot's support for jsp is not good, so I'll follow ...

Posted on Tue, 05 Feb 2019 12:39:16 -0800 by saloon12yrd

Summary of common problems in thymeleaf

Summary of common problems in thymeleaf 1.thymeleaf th:href multiple parameter transfer format th:href="@{/Controller/update(param1=1,param2=${person.id})}". Use commas to separate multiple parameters!!! Common usage of th:each of thymeleaf First, th:eath iteration set usage: <table border="1" id="stuTable"> ...

Posted on Sat, 02 Feb 2019 18:27:15 -0800 by veroaero

(1) spring-boot Foundation Environment Construction

1. Construction of Development Environment JDK version: Oracle JDK 1.8+ Build tools: Apache Maven 3.3.0+ (bin.zip) Development tools: IntelliJ IDEA 2017.2.6 2. Creating spring-boot Project Create a new project with idea: File - > New - > Project New project. png Fill in the basic information of the project: ...

Posted on Wed, 30 Jan 2019 10:24:14 -0800 by Havery Jay

Spring Boot (IV): Spring Boot Integrated Thymeleaf

Thymeleaf is a template engine for rendering XML/XHTML/HTML5 content. Similar to JSP, Velocity, FreeMaker, etc., it can also be easily integrated with Web frameworks such as Spring MVC as a template engine for Web applications. Compared with other template engines, Thymeleaf's greatest feature is that it can open and display template pages cor ...

Posted on Wed, 09 Jan 2019 22:51:11 -0800 by guitarist809