Spring boot series uses mail service

In our era, e-mail service is a very important existence not only for work communication, but also for all kinds of e-mail notifications. Java has been able to support email services through Java mail since a long time ago. Spring further encapsulates Java mail, abstracting out JavaMailSender. Later, ...

Posted on Wed, 22 Jan 2020 02:49:55 -0500 by wolves

Getting started with spring security authentication Basics

For users without access rights, you need to go to the login form page. There are many ways to implement access control, such as Aop, interceptor, or framework (such as Apache Shiro, Spring Security). pom.xml add dependency 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactI ...

Posted on Mon, 06 Jan 2020 13:28:15 -0500 by WhiteHawk

Spring cloud spring boot mybatis distributed micro service Cloud Architecture Development Web application (2)

After completing the configuration, take a simple example. Based on the quick start project, take a simple example to render a page through Thymeleaf. @Controller public class HelloController { @RequestMapping("/") public String index(ModelMap map) { // Add a property to read from the template map.addAttribute(" ...

Posted on Sat, 04 Jan 2020 14:58:20 -0500 by nanobots

Spring boot basic tutorial 2-1-10 file upload

1. overview The function of file upload and download is a common function in the web. Spring boot almost encapsulates the function of file upload to the extreme. It only needs a short configuration and a few lines of code to realize the function of file upload. 2. Source code analysis 2.1. Add pom.xml dependency <dependency> <group ...

Posted on Tue, 31 Dec 2019 23:47:40 -0500 by pragma

Spring boot integration for seconds killing

Spring boot integrated development to achieve shopping mall seckill Join Major dependencies <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <!-- alibaba Of druid Database connection pool --> <dependency> <g ...

Posted on Wed, 25 Dec 2019 09:49:22 -0500 by padams

Integrated Shiro security framework of spring boot 2.0 development case

I. Preface In order to manage the small yellow chart of the owner, a background management system is specially arranged. Of course, permission management is the first choice for Shiro. II. Table design At least the following tables are required, and the specific design depends on your business: Sys user: user table Sys role: role table Sys me ...

Posted on Tue, 10 Dec 2019 08:23:38 -0500 by deano2010

https certificate configuration under springboot

For those who do not have a certificate, first apply for an alicloud free certificate and follow my steps 1. The purchase page is like this Select in order A magical scene appeared   Then go to purchase successfully. We will see that the certificate is not issued. We need to apply Fill in the domain name to be bound Generally, the audit wi ...

Posted on Sun, 08 Dec 2019 11:34:43 -0500 by fifin04

Upload files for enterprise Spring Boot tutorial

This article mainly introduces how to receive multi file files uploaded through http as a server in spring boot project. Construction projectFor example, to create a spring MVC project, you need the start dependency of spring boot starter thymeleaf and spring boot starter web. For example, if you can upload files to the server, you need to add ...

Posted on Wed, 04 Dec 2019 16:54:18 -0500 by mrprozac

Spring Boot integrates thymeleaf note 2

The Thymeleaf front-end template is provided by Spring Boot. Generally speaking, Thymeleaf can completely replace JSP. Tymeleaf is a template engine of modern server. Different from traditional JSP, tymeleaf can be opened directly by browser, because it can ignore the extended attribute, which is equivalent to opening the native ...

Posted on Mon, 25 Nov 2019 10:25:58 -0500 by phamenoth

SpringBoot+Shiro learning summary - Introduction

Shiro summary shiro dependency mediating in response in pom.xml file <!--shiro And spring Integration dependency of--> <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.4.0</version> & ...

Posted on Wed, 20 Nov 2019 13:59:43 -0500 by s2r