Integrated use of Shiro permission management in SpringBoot
When integrating Shiro, we first need to determine our steps:
1. Add Shiro's dependency package to implement its own Realm class (by inheriting the AuthorizingRealm class);
2. Implement Shiro's configuration class
3. Implement the front-end login interface and Controller class
Step one:
Add d ...
Posted by vivianp79 on Mon, 02 Mar 2020 18:37:12 -0800
[Spring Security + OAuth2 + JWT start to practice] 4. System configuration user-defined login page
brief introduction
Previously, the default authentication process of spring security was used to process user-defined data and password encryption, but in the actual development, it must be to use the page developed by itself, the business processing of login success and failure, etc.
The personalization configuration is completed in the brow ...
Posted by phbock on Mon, 02 Mar 2020 01:33:07 -0800
Struts2 framework -- internationalization of Struts2 and data verification of struts2
Article directory
1, Struts 2 internationalization
1. Overview of struts 2 internationalization
2. Internationalization of struts 2
2, Struts2 data verification framework
1. Steps of Struts2 data verification framework
2. Using validate method to verify data
3. Provide corresponding verification m ...
Posted by sorenchr on Sun, 01 Mar 2020 02:25:45 -0800
Myspark startup process decryption
Original author: Li Haiqiang, from the retail big data team of Ping An Bank
Preface
As a data engineer, you may encounter many ways to start PySpark. You may not understand what they have in common, what differences they have, and what impact different methods have on program development and deploymen ...
Posted by phant0m on Sat, 29 Feb 2020 23:24:31 -0800
[dubbo source code] 1. How to publish services by service providers
Service publishing
Startup process
1.ServiceConfig#export
When the service provider starts the deployment, dubbo will call serviceconfig ා export to activate the service publishing process, as shown below:
Java API:
// 1. Create ServiceConfig instance
ServiceConfig<IGreetingService> serviceConfig = new ServiceConfig<>( ...
Posted by [-_-] on Thu, 27 Feb 2020 23:53:21 -0800
hive installation (incomplete)
1. Three installation methods of hive
Three installation methods of Hive are introduced on Hive official website, corresponding to different application scenarios. In the final analysis, the storage location of metadata is different.
Embedded mode (metadata is saved in the embedded derby database, al ...
Posted by akreation on Thu, 27 Feb 2020 02:23:22 -0800
MyBatis Cache Configuration
Level 1 Cache
Mybatis supports caching, but by default without configuration, it only turns on the first level cache, which is relative to the same SqlSession.So when we invoke a Mapper method using the same SqlSession object with exactly the same parameters and SQL, we usually execute SQL only once ...
Posted by fatmikey on Tue, 25 Feb 2020 18:15:43 -0800
Apache Shiro security framework
1, What is Shiro security framework
shrio is a powerful and flexible open source security framework, which mainly deals with authentication, authorization, session management and encryption.
Authentication: sometimes referred to as "login", i.e. authentication of the user.
Authori ...
Posted by Kev on Mon, 24 Feb 2020 20:55:28 -0800
Auto configuration data source of Springboot2.x
DataSourceAutoConfiguration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass({ DataSource.class, EmbeddedDatabaseType.class })
@EnableConfigurationProperties(DataSourceProperties.class)
@Import({ DataSourcePoolMetadataProvidersConfiguration.class, DataSourceInitializationConfiguration.clas ...
Posted by jrobles on Sun, 23 Feb 2020 03:04:52 -0800
ElasticSearch uses RestHighLevelClient to search and query
There are four types of client connection methods in the Elasticsearch Java API: TransportClient, RestClient, Jest, and spring [data] Elasticsearch. Among them, TransportClient and RestClient are the native api of Elasticsearch. TransportClient will be deleted in version 8.0, instead of HighLevelRestCli ...
Posted by JOWP on Sat, 22 Feb 2020 19:20:16 -0800