Getting started with Spring Boot, configuration, and logging

Spring Boot benefits Fast creation of stand-alone Spring projects and integration with mainstream frameworks Using the embedded Servlet container, the application does not need to be a WAR package starters auto dependency and version control A large number of automatic configuration, simplified devel ...

Posted by LeslieHart on Sat, 15 Feb 2020 02:05:02 -0800

Go Language Self-Study 18: Process Control Paper

There are so many process control methods in Go: if - else conditional statement switch - case selection statement for - range loop statement goto unconditional jump statement Defer defer execution if-else conditional statement if condition 1 { Branch 1 } else if conditio ...

Posted by nologin666 on Fri, 14 Feb 2020 23:13:08 -0800

SpringBoot -- Schedule Tasks

Starting with Spring 3.1, the implementation of scheduled tasks in Spring has become unusually simple.First turn on support for scheduled tasks by configuring the class annotation @EnableScheduling, then annotate @Scheduled on the method of executing the collection task to declare that this is a scheduled task. Spring supports a variety of sche ...

Posted by wilzy on Fri, 14 Feb 2020 09:07:13 -0800

Detailed process and implementation of Github third party login

1, Flow chart 2, Specific implementation steps I. create OAuth App First of all, we need to create an OAuth App. Click according to the steps below Fill in the information in turn, and then click Register application Then we can see that an id and password will be generated, which will be used later. Try not to let others see it (I'm he ...

Posted by labmixz on Fri, 14 Feb 2020 07:35:57 -0800

Spring cloud project integration [eureka+ribbon+zuul+hystrix+hystrix dashboard]

This article is not suitable for people who do not have the foundation of spring cloud. This article is a shelf that I sorted out after learning spring cloud. Mainly for self study Students who need source code are concerned about the following official account reply: xdxcloud Service Architecture ...

Posted by wiccan8888 on Fri, 14 Feb 2020 02:47:10 -0800

Spring framework - Part 2

Chapter 1: Spring's IOC implementation of CRUD 1.1 - Requirements and technical requirements Requirement: realize CRUD operation of account Technology: Using spring's IoC to manage objects Using dbutils as a persistence layer solution Using c3p0 data source 1.2 - environment construction 1.2.1-Maven project import dependency <dependen ...

Posted by davinci on Thu, 13 Feb 2020 23:29:13 -0800

Simple application of thmeleaf in springboot

Simple application of thmeleaf in springboot The priority of static directory and the type of storage resources Shortcut key of query class: ctrl+shift+r Search ResourceProperties private static final String[] CLASSPATH_RESOURCE_LOCATIONS = new String[]{ "classpath:/META-INF/resources/", "c ...

Posted by elhelaly1999 on Thu, 13 Feb 2020 22:41:24 -0800

Shiro Simple Use

Shiro 1. Introduction Apache Shiro is a Java security (permissions) framework. Shiro can easily develop applications that are good enough not only for JavaSE environments, but also for JavaEE environments. Shiro can complete authentication, authorization, encryption, session management, Web integration, caching, and more. Download address: ht ...

Posted by jsim on Thu, 13 Feb 2020 21:10:28 -0800

Escaping and canceling the escape of html special characters in java

1, Requirement description 1. The data from the front end is stored in the database, which needs to be escaped after the background When the user fills in the data, sometimes some html special characters (such as trademark symbol) will be passed in. At this time, we need to escape the special characters from the front end, an ...

Posted by cueball2000uk on Thu, 13 Feb 2020 14:01:19 -0800

Spring MVC uses ajax to download files

Spring MVC uses ajax to download files 1, Explain the conclusion 1. ajax is unable to download files, because: ajax request is just a "character" request, that is, the content of the request is stored in a text type. The file is downloaded in binary form. Although the returned response can be read, it is only read an ...

Posted by silverphpd on Thu, 13 Feb 2020 10:05:27 -0800