-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
import ResourcesRegistrar to run on https
- Loading branch information
1 parent
70ad56b
commit 49d2897
Showing
8 changed files
with
80 additions
and
49 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
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
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 @@ | ||
package de.cofinpro.account; | ||
|
||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
import org.springframework.lang.NonNull; | ||
|
||
public class ResourcesRegistrar implements RuntimeHintsRegistrar { | ||
|
||
@Override | ||
public void registerHints(@NonNull RuntimeHints hints, ClassLoader classLoader) { | ||
hints.resources() | ||
.registerPattern("keystore/*.p12") | ||
.registerPattern("*.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
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,4 @@ | ||
INSERT INTO ROLES (USER_ROLE) VALUES ('ROLE_ADMINISTRATOR'); | ||
INSERT INTO ROLES (USER_ROLE) VALUES ('ROLE_USER'); | ||
INSERT INTO ROLES (USER_ROLE) VALUES ('ROLE_ACCOUNTANT'); | ||
INSERT INTO ROLES (USER_ROLE) VALUES ('ROLE_AUDITOR'); |
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,38 @@ | ||
DROP TABLE IF EXISTS ROLES; | ||
CREATE TABLE IF NOT EXISTS LOGIN | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
name VARCHAR(64), | ||
lastname VARCHAR(64), | ||
email VARCHAR(64) UNIQUE NOT NULL, | ||
password VARCHAR(128) NOT NULL, | ||
account_locked BOOL NOT NULL, | ||
failed_logins SMALLINT | ||
); | ||
CREATE TABLE IF NOT EXISTS SALARY | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
email VARCHAR(64) NOT NULL, | ||
period VARCHAR(7) NOT NULL, | ||
salary BIGINT NOT NULL | ||
); | ||
CREATE TABLE IF NOT EXISTS ROLES | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
user_role VARCHAR(20) UNIQUE NOT NULL | ||
); | ||
CREATE TABLE IF NOT EXISTS LOGIN_ROLES | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
email VARCHAR(64) NOT NULL, | ||
user_role VARCHAR(20) NOT NULL | ||
); | ||
CREATE TABLE IF NOT EXISTS AUDIT | ||
( | ||
id BIGSERIAL PRIMARY KEY NOT NULL, | ||
date DATE NOT NULL, | ||
action VARCHAR(20) NOT NULL, | ||
subject VARCHAR(64), | ||
object VARCHAR(128), | ||
path VARCHAR(64) NOT NULL | ||
); |
This file was deleted.
Oops, something went wrong.
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