After reading this article, do you still feel that spring security integration OAuth2 custom query users are complex?
Spring security integration OAuth2 is recognized by developers as the best matching partner for resource protection and service authentication. This pair of good friends have been quietly guarding the security of application services. According to the different roles of visitors, they can control the granularity to specific interfaces, so as to ...
Posted by charlieholder on Sat, 07 Dec 2019 05:17:58 -0800
Basic usage of Beetl template [variables, cycles, conditions] - Beetl video course
This video makes a list of the blog's home page;
Content introduction: springboot integrates beetlsql; uses for loop, if control statement, virtual property, variable definition, etc
Learn beetl directory together: https://my.oschina.net/u/1590490?tab=newest&catalogId=6214598
Author: GK
Integrate BeetlSql to query database
Introducing d ...
Posted by kim on Fri, 06 Dec 2019 00:55:41 -0800
Mybatis has its own connection pool for reading
1. Initialization of data source. The initialization entry is provided by SqlSessionFactoryBuilder.build(InputStream inputStream, String environment, Properties properties) method
public SqlSessionFactory build(InputStream inputStream, String environment, Properties properties) {
try {
XMLConfigBuilder parser = new XMLConfigBuilder ...
Posted by kyme on Thu, 05 Dec 2019 17:10:44 -0800
Single sign on CAS6 - customized user information returned by the server
principle
The returned user information is configured in deployerConfigContext.xml
Since you want to customize the returned user information, just inherit org.jasig.services.persondir.support.stubbersonattributedao
1. Create com.jadyer.sso.authentication extensions stubbersonattributedao and copy getPerson() method
Use @ ...
Posted by faifas on Thu, 05 Dec 2019 04:19:41 -0800
[MyBatis] reverse engineering use
Using mybatis reverse engineering, it is very convenient to automatically map with tables in the database, and generate mapper.xml and mapper interface.
Here I use IDEA to demonstrate through maven.
Step 1: configure the pom.xml fileThe corresponding shelf package is introduced. The emphasis of reverse engineering is on the mybat ...
Posted by luddeb on Wed, 04 Dec 2019 15:53:41 -0800
Hive-2.3.4 installation (upgrade from Hive-1.2.2)
Download Hive installation package from website
Modify hive-site.xml (version 2.3.4 does not have this file to create directly)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>javax.jdo.option. ...
Posted by ryadex on Tue, 03 Dec 2019 14:14:21 -0800
DBCP database connection pool
DBCP database connection pool
DBCP(DataBase Connection Pool)
When developing a project, we need to constantly interact with the database. In java, using JDBC to connect to the database every time we connect to the database, we need to load the driver, get the connection, destroy the connection and other steps, which takes a l ...
Posted by Stagnate on Tue, 03 Dec 2019 10:48:25 -0800
Add, delete, change and query of JDBC Java connection mysql
Using software: mysql, eclipse
Link steps:
1. Registration driver
2. Create a connection object
3. Write sql statement
4. Execute sql statement and return a result or result set
5. Close the three connection objects (connection, statement and setresult). The closing order is (setresult -- > statement -- > setresult)
I. direct connection m ...
Posted by jackread on Mon, 02 Dec 2019 16:06:59 -0800
How to configure multiple data sources and switch between them?
Recently, a project of the company needs to connect two databases (A and b) for operation. Some modules query database a, and some modules query database B. therefore, the project background uses the spring MVC + mybatis + MySQL architecture. After two days of tossing, it is finally completed. Here, the modification process is recorded.
Us ...
Posted by tryin_to_learn on Sun, 01 Dec 2019 07:40:39 -0800
mybatis uses plug-ins to implement table splitting
Such as the title, the comparison of sub table rules this time?? Some user related tables are divided by product dimensions, for example: user 1, user 2 (1, 2 is the product id, a new product will add a whole set of tables...). It is not appropriate to study a wave of sharing JDBC (later changed to sharing sphere), and it also has the feeling o ...
Posted by matt2012 on Sun, 01 Dec 2019 03:44:09 -0800