This commit is contained in:
10
pom.xml
10
pom.xml
@@ -167,13 +167,13 @@
|
||||
<plugin>
|
||||
<groupId>com.google.cloud.tools</groupId>
|
||||
<artifactId>jib-maven-plugin</artifactId>
|
||||
<version>${jib-maven-plugin.version}</version>
|
||||
<version>3.3.1</version>
|
||||
<configuration>
|
||||
<from>
|
||||
<image>openjdk:17-jdk-slim</image>
|
||||
</from>
|
||||
<to>
|
||||
<image>light-delivery</image>
|
||||
<image>light-delivery-app</image>
|
||||
<tags>
|
||||
<tag>latest</tag>
|
||||
<tag>${project.version}</tag>
|
||||
@@ -182,8 +182,14 @@
|
||||
<container>
|
||||
<ports>
|
||||
<port>8080</port>
|
||||
<port>8443</port>
|
||||
</ports>
|
||||
<environment>
|
||||
<SPRING_PROFILES_ACTIVE>prod</SPRING_PROFILES_ACTIVE>
|
||||
</environment>
|
||||
<creationTime>USE_CURRENT_TIMESTAMP</creationTime>
|
||||
<!-- 添加主类配置 -->
|
||||
<mainClass>com.light.delivery.LightApplication</mainClass>
|
||||
</container>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
@@ -38,7 +38,7 @@ public class JwtUtil {
|
||||
/**
|
||||
* 生成一个安全的随机密钥,并打印其Base64编码字符串(用于配置到配置文件中)
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
public static void BuildSecretKey() {
|
||||
// 生成一个专门用于 HS512 算法的安全随机密钥
|
||||
SecretKey secretKey = Keys.secretKeyFor(SignatureAlgorithm.HS512);
|
||||
|
||||
|
Reference in New Issue
Block a user