Felipe
10/19/2017, 8:17 AM@Value("\${email.address.override:}")
mp
10/19/2017, 8:23 AM:default
then there is no need for String? = null
mp
10/19/2017, 8:24 AM@Value
is very good to wire with constructor. Is there a reason why u don't use this way?mp
10/19/2017, 8:27 AM@Service
class FileService(
@Autowired val storage: Storage,
@Value("\${files-topic:default-topic}") val filesTopic: String
) {}
Felipe
10/19/2017, 8:32 AMmp
10/19/2017, 9:02 AMmp
10/19/2017, 9:03 AMFelipe
10/19/2017, 10:09 AM@Value("\${email.address.override:#{null}}")
in order to set the default to nullFelipe
10/19/2017, 10:09 AMmp
10/19/2017, 10:09 AM