Skip to content

Commit

Permalink
feat: Add Java bootstrap with Windows support and localhost configura…
Browse files Browse the repository at this point in the history
…tion (#12)
  • Loading branch information
hanzeINGH authored Jan 17, 2025
1 parent 66a2678 commit da0107a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions java/bootstrap.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
gradlew.bat run
2 changes: 2 additions & 0 deletions java/bootstrap.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# PowerShell script to run gradle project
.\gradlew.bat run
3 changes: 3 additions & 0 deletions java/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

./gradlew run
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da0107a

Please sign in to comment.