2024-04-10 07:43:38 +01:00
|
|
|
package cc.fascinated.config;
|
|
|
|
|
|
|
|
import jakarta.annotation.PostConstruct;
|
|
|
|
import lombok.Getter;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
@Getter
|
2024-04-10 13:24:56 +01:00
|
|
|
@Configuration
|
2024-04-10 07:43:38 +01:00
|
|
|
public class Config {
|
|
|
|
public static Config INSTANCE;
|
|
|
|
|
|
|
|
@Value("${public-url}")
|
|
|
|
private String webPublicUrl;
|
|
|
|
|
|
|
|
@PostConstruct
|
|
|
|
public void onInitialize() {
|
|
|
|
INSTANCE = this;
|
|
|
|
}
|
|
|
|
}
|