Skip to content

Commit fd90c7a

Browse files
Add configuration annotation
1 parent f7da01e commit fd90c7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/util/YamlPropertySourceFactory.kt

+2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
package uk.gov.justice.digital.hmpps.hmppsintegrationapi.util
44

55
import org.springframework.beans.factory.config.YamlPropertiesFactoryBean
6+
import org.springframework.context.annotation.Configuration
67
import org.springframework.core.env.PropertiesPropertySource
78
import org.springframework.core.env.PropertySource
89
import org.springframework.core.io.support.EncodedResource
910
import org.springframework.core.io.support.PropertySourceFactory
1011
import java.io.IOException
1112
import java.util.*
1213

14+
@Configuration
1315
class YamlPropertySourceFactory : PropertySourceFactory {
1416
override fun createPropertySource(
1517
name: String?,

0 commit comments

Comments
 (0)