Precautions for spring boot 1.x up 2.x

Record some errors during upgrade. This upgrade is 1.5.x upgrade to 2.1.4 ---------------------------------------------- If java version is lower than 8, please do not upgrade. spring boot 2.0 requires at least java 8. ---------------------------------------------- One: WebMvcConfigurerAdapter has been abandoned @Configuration public cl ...

Posted by flying_circus on Mon, 18 Nov 2019 00:57:01 -0800

Application skin change - Summary

(I) storage strategy <1> database You can add skin fields to the database user table for access. If the user table is not convenient for adding fields, you can add an intermediate table to store user and skin information.< 2 > read write configuration Users and skin information can be stored by reading an ...

Posted by veronicabend on Thu, 07 Nov 2019 10:40:59 -0800

The way to learn java web -- several exception handling methods in spring boot

Spring Boot (3) error handling 1. User defined exception handling, return to the specified interface In the method of controller error: @RequestMapping("/error") public String error() {     String str=null;     str.length();     return "test"; } In custom error page.html: <!DOCTYPE html> <html xmlns:th="http:// ...

Posted by Adastra on Wed, 06 Nov 2019 08:14:54 -0800

Spring boot implements simple addition, deletion, modification and query as well as conditional paging

condition Use Spring boot, mybatis and mysql to realize the following functions User list User increase Information modification Information view User search paging ps: the page engine uses the thmeleaf engine recommended by Spring boot The renderings are as follows step ...

Posted by Kainproductions on Mon, 04 Nov 2019 09:11:38 -0800

Spring Boot 2 series of tutorials Spring Boot integrates Thymeleaf

Although it's slowly separating development in the popular front and back end, according to song Ge, there are still some companies that are developing front and back end indiscriminately. In the development of front and back end indiscriminately, we will need back-end page templates (in fact, even if the front and back end are separated, we wi ...

Posted by Danestar on Thu, 24 Oct 2019 00:55:25 -0700

Tymeleaf common syntax: HTML attribute settings

Use the properties of Thymeleaf to set HTML properties.(1) the th:attr attribute can be used to modify the attributes of the original HTML node.(2) th:attr attribute can set multiple attributes at the same time;(3) each HTML attribute has a corresponding Thymeleaf attribute, for example, th:attr="value = 'value'" can be replaced by th ...

Posted by djdog.us on Wed, 16 Oct 2019 11:51:41 -0700

Use of Thymeleaf objects: date objects

Thymeleaf uses two objects ා dates or ා calendars in the template to process dates, most of which are similar. Development environment: IntelliJ IDEA 2019.2.2Spring Boot version: 2.1.8 Create a new Spring Book project named demo. 1,pom.xmlAdding Thymeleaf dependencies <dependency> <groupId>org.springframew ...

Posted by haddydaddy on Sun, 13 Oct 2019 13:28:16 -0700

SpringBoot take-off series - internationalization

I. Preface We may not use internationalization very often, but we still have to do it where we need it. Today, let's look at how to configure internationalization in our web development, so that our websites can display different forms according to the language. This article continues with the previous one. SpringBoot Take-off Series - Web Dev ...

Posted by michelledebeer on Thu, 10 Oct 2019 05:46:14 -0700

3. SpringBook Integrates Thymeleaf Views

Catalog 3.1 Introduction to Thymeleaf View 3.2 Create SpringBook Project 3.2 Configuration of Thymeleaf 3.3 Writing Demo 3.4 Summary 3.1 Introduction to Thymeleaf View First look at the introduction of the official website: == Thymeleaf is a modern server-side Java template engine fo ...

Posted by insane on Wed, 09 Oct 2019 06:39:56 -0700

[SpringBoot 2.x] - Thymeleaf, Web, Tomcat and Faicon in SpringBoot Web development

Web development is a very important part of development. The core content of Web development mainly includes embedded Servlet container and Spring MVC. More importantly, Spring Boot ``provides a quick and convenient way to develop web. It provides Tomcat and Spring MVC dependencies of embedded server using dependency jar: spring-boot-starter-w ...

Posted by begeiste on Tue, 08 Oct 2019 22:45:30 -0700