Skip to content

Commit

Permalink
perf($POM): remove deprecated dependency `spring-cloud-starter-bootst…
Browse files Browse the repository at this point in the history
…rap`
  • Loading branch information
johnnymillergh committed Feb 3, 2022
1 parent 92abee4 commit 772cfbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 0 additions & 4 deletions spring-cloud-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@
</dependency>

<!-- Spring Cloud Dependencies -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-consul-all</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class JwtConfigurationProperties {
@Setter(AccessLevel.NONE)
private String jwtRedisKeyPrefix;
/**
* JWT signing key. Pattern: [project-parent-artifact-id]@[version]
* JWT signing key. Pattern: [groupId]:[projectParentArtifactId]@[version]
*/
@Setter(AccessLevel.NONE)
private String signingKey;
Expand All @@ -47,9 +47,13 @@ public class JwtConfigurationProperties {
*/
@NotNull
private Long ttlForRememberMe = 7 * 86400000L;

public JwtConfigurationProperties(MafProjectProperties mafProjectProperties) {
this.signingKey = String.format("%s:%s", mafProjectProperties.getGroupId(),
mafProjectProperties.getProjectParentArtifactId());
this.signingKey = String.format(
"%s:%s@%s", mafProjectProperties.getGroupId(),
mafProjectProperties.getProjectParentArtifactId(),
mafProjectProperties.getVersion()
);
log.info("Initiated JWT signing key: {}. The specified key byte array is {} bits", this.signingKey,
this.signingKey.getBytes(StandardCharsets.UTF_8).length * 8);
this.jwtRedisKeyPrefix = String.format("%s:jwt:", mafProjectProperties.getProjectParentArtifactId());
Expand Down

0 comments on commit 772cfbb

Please sign in to comment.