Skip to content

Commit 6d96bca

Browse files
committed
修复环境变量配置:使用APP_DOMAIN代替app.domain以兼容systemd
1 parent 8cd4bd6 commit 6d96bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/layor/tinyflow/service/ShortUrlService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class ShortUrlService {
6464
@Autowired
6565
private AuthService authService; // 注入认证服务
6666

67-
@Value("${app.domain:http://localhost:8080}")
67+
@Value("${APP_DOMAIN:http://localhost:8080}")
6868
private String baseUrl;
6969

7070
public ShortUrlDTO createShortUrl(String longUrl, String customAlias) throws Exception {

0 commit comments

Comments
 (0)