Update samples to use configuration properties scanning
Closes gh-12602
This commit is contained in:
@@ -17,14 +17,12 @@
|
||||
package sample.test.service;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Properties for the service.
|
||||
*
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties
|
||||
public class ServiceProperties {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user