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

Spring cloud -- config configuration center

Config Server configuration It provides centralized external configuration for microservices, and configuration server provides centralized external configuration for various environments of each microservice application. Configuration information and business code are managed separately to support dynamic configuration of multiple environm ...

Posted by EWaveDev on Thu, 13 Feb 2020 07:21:58 -0800

A brief introduction to the basic components of spring cloud

Introduction to spring cloud eureka As a registry, eureka plays an important role in microservices. At present, eureka and zookeeper are the mainstream registries. eureka is AP, zookeeper is CP. (CAP theory) Architecture diagram As can be seen from the architecture diagram, eureka adopts cs archite ...

Posted by shaitand on Wed, 12 Feb 2020 21:11:08 -0800

HTML basic notes list and fonts

3 lists <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> /* Remove bullet * */ /*ul{ list-style: none; }*/ </style> </head> <body> <!-- The lis ...

Posted by martor on Wed, 12 Feb 2020 10:14:33 -0800