Spring Boot series: Spring Boot uses template engine FreeMarker
I. Java Template Engine
Template engine (hereinafter referred to as template engine for Web development) is designed to separate user interface from business data (content). It can generate documents in a specific format. Template engine for Web site will generate a standard HTML document.
In java, the main template engines are JSP, Thymeleaf, ...
Posted by ceanth on Sun, 13 Oct 2019 04:40:47 -0700
Global exception handling in SpringBook series of tutorials
When there are exceptions in our back-end application, we usually wrap the exceptions and return them to the caller or the front-end. In the actual project, it is impossible to handle exceptions everywhere, and then elegant code may throw exceptions. So how can we handle these exceptions gracefully in Spring project?
This article will introduce ...
Posted by Gayner on Fri, 11 Oct 2019 03:54:20 -0700
Springboot 2.0.3 Configuration Log
Reason: SpringBoot uses slf4j log by default. When introducing other frameworks, it only needs to exclude the log framework that the framework depends on.
When I wanted to introduce log4j today, the pom file kept reporting errors, indicating that the jar package of log4j could not be found, which should be the reason for the springboot version ...
Posted by Markx on Thu, 10 Oct 2019 07:18:23 -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
springcloud Learning Road: springcloud Integrated Zuul Gateway
Gateway is to do filtering or blocking operations to make our services more secure. When users access our services, they must first pass through the gateway and then forward it to our micro-services by the gateway.
1. New Gateway Service Module
2. Still choose springboot Project
3. Name the old rule
4. Check Registry Client
5. Chec ...
Posted by akelavlk on Wed, 09 Oct 2019 23:04:44 -0700
Processing of @Enable AutoConfiguration Annotation @AutoConfiguration Import Selector Annotation
Java and Spring Boot novice, the first attempt to source code analysis, welcome to correct!
I. Overview
@ The Enable AutoConfiguration annotation is the master switch configured for automatic loading in Spring Boot. This article will start with @Enable AutoConfiguration and try to enhance Spring Boot understanding through source code analy ...
Posted by ghjr on Wed, 09 Oct 2019 18:35:56 -0700
Spring Boot 2.x Basic Tutorial: Swagger Interface Classification and Detailed Explanation of Element Sorting Problem
Previously adopted Spring Boot 2.x basic tutorial: building powerful API documents with Swagger2 In this article, we learned how to use Swagger to automatically generate API documents for Spring Book projects. Many users left messages asking about the organization and sorting of document content. So, I'll start a special article detailing how S ...
Posted by justinwhite93 on Wed, 09 Oct 2019 10:41:05 -0700
1. Springboot Development, Day 1
SpringBoot Learning, Day 1
Contents: 1, springboot Introduction 2, springboot Integration Serlet 3, springboot Integration filter
I. Introduction to springboot
Spring Boot is designed to simplify the initial build and development of new Spring applications.
- Embedded Tomcat, without deploying WAR files
Spring Boot is not an enhancement of Sp ...
Posted by rrijnders on Wed, 09 Oct 2019 08:14:56 -0700
Concise and understandable @SpringBootApplication annotation source code analysis
springApplication
1. What is the function of @SpringBootApplication?
There is a commentary @SpringBootApplication on the startup class of Q:springboot project. What role does this annotation play?
@SpringBootApplication
public class MicroServiceApplication {
public static void main(String[] args) {
SpringApplication.run(MicroServic ...
Posted by salathe on Wed, 09 Oct 2019 06:54:05 -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