package com.example;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("my.welcome")
public class WelcomeProperties {
private Resource resource;
private String path;
public Resource getResource() {
return resource;
}
public void setResource(Resource resource) {
this.resource = resource;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
}