20
src/main/java/cc/fascinated/config/Config.java
Normal file
20
src/main/java/cc/fascinated/config/Config.java
Normal file
@ -0,0 +1,20 @@
|
||||
package cc.fascinated.config;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import lombok.Getter;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
@Getter
|
||||
public class Config {
|
||||
public static Config INSTANCE;
|
||||
|
||||
@Value("${public-url}")
|
||||
private String webPublicUrl;
|
||||
|
||||
@PostConstruct
|
||||
public void onInitialize() {
|
||||
INSTANCE = this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user