diff --git a/java/bootstrap.bat b/java/bootstrap.bat new file mode 100644 index 0000000..19d84e2 --- /dev/null +++ b/java/bootstrap.bat @@ -0,0 +1,2 @@ +@echo off +gradlew.bat run \ No newline at end of file diff --git a/java/bootstrap.ps1 b/java/bootstrap.ps1 new file mode 100644 index 0000000..8865ece --- /dev/null +++ b/java/bootstrap.ps1 @@ -0,0 +1,2 @@ +# PowerShell script to run gradle project +.\gradlew.bat run \ No newline at end of file diff --git a/java/bootstrap.sh b/java/bootstrap.sh new file mode 100644 index 0000000..3b1f4d6 --- /dev/null +++ b/java/bootstrap.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./gradlew run \ No newline at end of file diff --git a/java/jwt-oauth/src/main/java/com/coze/jwt/config/AppConfig.java b/java/jwt-oauth/src/main/java/com/coze/jwt/config/AppConfig.java index 0282129..f272313 100644 --- a/java/jwt-oauth/src/main/java/com/coze/jwt/config/AppConfig.java +++ b/java/jwt-oauth/src/main/java/com/coze/jwt/config/AppConfig.java @@ -38,7 +38,7 @@ public class AppConfig { @JsonProperty("coze_www_base") private String cozeWwwBase; - private final String redirectUri = "http://localhost:8080/callback"; + private final String redirectUri = "http://127.0.0.1:8080/callback"; private static volatile AppConfig instance; diff --git a/java/pkce-oauth/src/main/java/com/coze/pkce/config/AppConfig.java b/java/pkce-oauth/src/main/java/com/coze/pkce/config/AppConfig.java index 5b4b5e1..0f3810c 100644 --- a/java/pkce-oauth/src/main/java/com/coze/pkce/config/AppConfig.java +++ b/java/pkce-oauth/src/main/java/com/coze/pkce/config/AppConfig.java @@ -32,7 +32,7 @@ public class AppConfig { @JsonProperty("coze_www_base") private String cozeWwwBase; - private final String redirectUri = "http://localhost:8080/callback"; + private final String redirectUri = "http://127.0.0.1:8080/callback"; private static volatile AppConfig instance; diff --git a/java/web-oauth/src/main/java/com/coze/web/config/AppConfig.java b/java/web-oauth/src/main/java/com/coze/web/config/AppConfig.java index 1a6d01a..261e33c 100644 --- a/java/web-oauth/src/main/java/com/coze/web/config/AppConfig.java +++ b/java/web-oauth/src/main/java/com/coze/web/config/AppConfig.java @@ -35,7 +35,7 @@ public class AppConfig { @JsonProperty("coze_www_base") private String cozeWwwBase; - private final String redirectUri = "http://localhost:8080/callback"; + private final String redirectUri = "http://127.0.0.1:8080/callback"; private static volatile AppConfig instance;