-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
82 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 0 additions & 52 deletions
52
mybatis-crypto-core/src/main/java/io/github/whitedg/mybatis/crypto/KeyFieldsProvider.java
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
mybatis-crypto-core/src/main/java/io/github/whitedg/mybatis/crypto/KryoPool.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
mybatis-crypto-core/src/main/java/io/github/whitedg/mybatis/crypto/Mode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.github.whitedg.mybatis.crypto; | ||
|
||
/** | ||
* @author White | ||
*/ | ||
enum Mode { | ||
ENCRYPT, DECRYPT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
mybatis-crypto-demo/src/main/resources/application-h2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
spring: | ||
datasource: | ||
url: jdbc:h2:mem:demo_db | ||
driver-class-name: org.h2.Driver | ||
username: sa | ||
password: sa | ||
h2: | ||
console: | ||
enabled: true | ||
sql: | ||
init: | ||
schema-locations: classpath:db/h2/schema.sql |
8 changes: 8 additions & 0 deletions
8
mybatis-crypto-demo/src/main/resources/application-mysql.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
spring: | ||
datasource: | ||
username: root | ||
password: ne2FRwzOQjONzEOmx0oZ4uh9 | ||
hikari: | ||
jdbc-url: jdbc:mysql://localhost:3306/mybatis_crypto | ||
driver-class-name: com.mysql.cj.jdbc.Driver | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
mybatis-crypto-demo/src/main/resources/db.mysql/schema.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE | ||
DATABASE `mybatis_crypto` CHARACTER | ||
SET utf8mb4 COLLATE utf8mb4_general_ci; | ||
|
||
DROP TABLE IF EXISTS `t_user`; | ||
|
||
CREATE TABLE `t_user` | ||
( | ||
`id` INT NOT NULL AUTO_INCREMENT, | ||
`name` VARCHAR(255) NULL DEFAULT NULL, | ||
`email` VARCHAR(255) NULL DEFAULT NULL, | ||
`password` VARCHAR(255) NULL DEFAULT NULL, | ||
`id_card_no` VARCHAR(255) NULL DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters