- All Implemented Interfaces:
- org.springframework.boot.CommandLineRunner
@SpringBootApplication
@PropertySource(name="EncryptedProperties",
value="classpath:encrypted.properties")
@Import(value=TestConfig.class)
@EnableConfigurationProperties(value=ItemConfig.class)
@ImportResource(value="classpath:/testConfig.xml")
public class DemoApplication
extends Object
implements org.springframework.boot.CommandLineRunner
Sample Boot application that showcases easy integration of Jasypt encryption by
simply adding @EnableEncryptableProperties to any Configuration class.
For decryption a password is required and is set through system properties in this example,
but it could be passed command line argument too like this: --jasypt.encryptor.password=password
- Author:
- Ulises Bocchio