From e333448b8a7321785ffc14e71518c22c404e68d4 Mon Sep 17 00:00:00 2001
From: tobias <thinkdifferent055@gmail.com>
Date: Fri, 27 Oct 2023 21:21:51 +0200
Subject: [PATCH] Remove hardcoded properties source

---
 .../playwall/PlaywallServerApplication.java     | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/src/main/java/de/tobias/playwall/PlaywallServerApplication.java b/src/main/java/de/tobias/playwall/PlaywallServerApplication.java
index 67865c0..dbdf3b8 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);
-- 
GitLab