Skip to content

Commit

Permalink
fix: auto generate spring-configuration-metadata.json (jcasbin#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
imp2002 authored Sep 25, 2022
1 parent 6b4eef9 commit cf227ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 110 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {
compile 'org.casbin:jcasbin:1.21.0'
compile 'com.h2database:h2:2.1.210'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'

compileOnly 'org.springframework.boot:spring-boot-starter-data-redis'
testImplementation 'org.springframework.boot:spring-boot-starter-data-redis'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
*/
@ConfigurationProperties("casbin")
public class CasbinProperties {
/**
* Default table name when storage strategy is JDBC
*/
private String tableName = "casbin_rule";
/**
* Default table name when storage strategy is JDBC
*/
private String tableName = "casbin_rule";
/**
* Enable Casbin
*/
Expand Down Expand Up @@ -166,13 +166,13 @@ public void setUseDefaultModelIfModelNotSetting(boolean useDefaultModelIfModelNo
this.useDefaultModelIfModelNotSetting = useDefaultModelIfModelNotSetting;
}

public String getTableName() {
return tableName;
}
public String getTableName() {
return tableName;
}

public void setTableName(String tableName) {
this.tableName = tableName;
}
public void setTableName(String tableName) {
this.tableName = tableName;
}

public String getPolicyTopic() {
return policyTopic;
Expand Down
100 changes: 0 additions & 100 deletions src/main/resources/META-INF/spring-configuration-metadata.json

This file was deleted.

0 comments on commit cf227ac

Please sign in to comment.