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

Spring boot integrates the Jasypt security framework and encrypts the content of configuration files

Reprinted in ( https://zhiku8.com/springboot-jasypt.html) We are clear text in the yml or properties configuration files of the spring boot project, so the security is relatively low. We all know that the configuration file contains some database connection user name and password, some third-party key and other information. So let's be careful. ...

Posted by searchman on Sat, 30 Nov 2019 14:09:47 -0800

Flyway execution error:'user_variables_by_thread'table does not have SELECT privilege problem solving

Share a recent problem encountered throughout Flyway and some solutions.If you don't know Flyway yet, I suggest you take a look at this article first Use Flyway in Spring Boot to manage database versions Problem Description The version information used for the project described in the problem appears as follows: Spring Boot: 2.1.3 Flyway:5.2.4 ...

Posted by Fizzgig on Thu, 28 Nov 2019 18:19:51 -0800

The principle and Simulation of mysql database connection pool

What is a database connection pool? When the system uses JDBC technology to access the database, it will create a connection object, and the creation process of the object is very resource consuming, and the time to create the object is also very long. Assuming that the system has 10000 accesses a day, then 10000 connection objects will be crea ...

Posted by Dowdy on Thu, 28 Nov 2019 04:52:55 -0800