Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PlayWallServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallServer
Commits
e333448b
Commit
e333448b
authored
1 year ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Remove hardcoded properties source
parent
ecc614fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/tobias/playwall/PlaywallServerApplication.java
+0
-17
0 additions, 17 deletions
...in/java/de/tobias/playwall/PlaywallServerApplication.java
with
0 additions
and
17 deletions
src/main/java/de/tobias/playwall/PlaywallServerApplication.java
+
0
−
17
View file @
e333448b
package
de.tobias.playwall
;
package
de.tobias.playwall
;
import
lombok.SneakyThrows
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
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
@SpringBootApplication
public
class
PlaywallServerApplication
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
)
public
static
void
main
(
String
[]
args
)
{
{
SpringApplication
.
run
(
PlaywallServerApplication
.
class
,
args
);
SpringApplication
.
run
(
PlaywallServerApplication
.
class
,
args
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment