springboot learning notes

(V) springboot integrates the thmeleaf template to realize simple login 1. Modify the user table in the note in the previous section, add a password field, and require the username to be UNIQUE to realize login verification. The table structure is as follows.   CREATE TABLE `user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` var ...

Posted by James25 on Wed, 04 Dec 2019 21:47:35 -0800

java version of personal income tax calculation

The year is coming. It's time to give out the year-end bonus. So I went to the Internet to find the personal tax calculator, but I found it was a little like a virus website. So the result of calculation is not very dare to believe, so ponder, or write a personal income tax calculator by yourself. First, I went to the State Administration of T ...

Posted by lapith on Mon, 02 Dec 2019 23:05:26 -0800

Java springcloud B2B2C o2o multi user shopping mall springcloud architecture validation form information

This article mainly describes how to verify form information in springboot. In the spring MVC project, the form information needs to be checked, and the form information verification is mainly in the form of annotation. Construction project To create a springboot project, because web, thymeleaf, validator and el are used, corresponding start ...

Posted by shiva on Sun, 01 Dec 2019 20:00:07 -0800

SpringBoot modify startup log output

Create the banner.txt file in the src/main/resources directory of the project, and the startup output of SpringBoot will be changed Buddha log ${AnsiColor.BRIGHT_YELLOW} ${AnsiColor.BRIGHT_RED}_ooOoo_${AnsiColor.BRIGHT_YELLOW} ${AnsiColor.BRIGHT_RED}o8888888o${AnsiColor.BRIGHT_YELLOW} ${An ...

Posted by avatar.alex on Sun, 01 Dec 2019 18:12:30 -0800

springboot 2.0.8 jump to jsp page

Spring boot project creation tutorial https://blog.csdn.net/q18771811872/article/details/88126835 springboot 2.0 jump to html tutorial https://blog.csdn.net/q18771811872/article/details/88312862 jsp+html jump integration https://blog.csdn.net/q18771811872/article/details/88343672 This is a tutorial to jump to jsp page separately. I will intr ...

Posted by PickledOnion on Sun, 01 Dec 2019 05:36:45 -0800

Spring boot reads the folder in resource under jar package

Some time ago, in the development process based on springboot, we encountered a problem: the program needs to read all the files of a directory under resource, and it needs to be able to read them in the form of file. However, after packaging, the springboot project becomes a jar package. When reading the file, an error will be rep ...

Posted by jfourman on Sat, 30 Nov 2019 09:51:35 -0800

SpringBoot Integrated Security+Thymeleaf case

I. Introduction of relevant jar s 1) change the Thymeleaf version to 3, the Layout version to 2, and the integrated version of Security+Thymeleaf <properties> <java.version>1.8</java.version> <!--thymeleaf Switch to version 3, layout Switch to 2--> <thymeleaf.version>3.0.9.RELEASE< ...

Posted by Ace_Online on Sat, 30 Nov 2019 07:52:04 -0800

Customize your own Eureka management interface

The interface of Eureka server can be customized, and the method is relatively simple. Let's take a look at the modification method. In some companies, the interface of service registration center may need to be completely customized. It needs to carry some company features and elements. If so, the content of this chapter can help you, and the ...

Posted by mb81 on Thu, 28 Nov 2019 01:08:27 -0800

Factory object and object singleton under springboot

The directory structure is as follows Interface class public interface EtkClient { static EtkClient getInstance(){ return null; } String getToken(); String getTokenKey(); String getUrl(); String getReturnMode(); String getShipway(); String getType(); } Factory class @Co ...

Posted by gdhanasekar on Wed, 27 Nov 2019 08:01:15 -0800

Spring boot application in-depth learning

This section mainly introduces the in-depth learning of spring boot application class related source code. It mainly includes: Spring boot application custom boot configuration Spring boot application life cycle, as well as customized configuration in various stages of the life cycle. This section uses springboot 2.1.10.release. The correspon ...

Posted by mapexdrum on Sun, 24 Nov 2019 21:07:19 -0800