diff --git a/src/main/java/de/tobias/playwall/PlaywallServerApplication.java b/src/main/java/de/tobias/playwall/PlaywallServerApplication.java index 67865c02bb2a0f18e056c29c93b61b019d3cf61b..dbdf3b8f5caf4c7a12215ed45ffe200e9473d619 100644 --- a/src/main/java/de/tobias/playwall/PlaywallServerApplication.java +++ b/src/main/java/de/tobias/playwall/PlaywallServerApplication.java @@ -1,29 +1,12 @@ package de.tobias.playwall; -import lombok.SneakyThrows; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; -import org.springframework.core.io.ClassPathResource; -import org.springframework.core.io.FileUrlResource; -import org.springframework.core.io.Resource; @SpringBootApplication public class PlaywallServerApplication { - @SneakyThrows - @Bean - public static PropertySourcesPlaceholderConfigurer properties() - { - PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); - Resource[] resources = new Resource[]{new FileUrlResource("/Users/tobias/Documents/Programmieren/Projects/PlayWall/PlayWallServer/config/plugins.yaml")}; - pspc.setLocations(resources); - pspc.setIgnoreUnresolvablePlaceholders(true); - return pspc; - } - public static void main(String[] args) { SpringApplication.run(PlaywallServerApplication.class, args);