I'm on a Spring project and have skill level 1 with Spring. 2 days I have been reading and trying to get Jasypt encryption working with some existing code but the value that is passed is the ENC(....) value that needs to be transformed.
The one project that I'm to look at is a self ran project using a main()
whereas the one I am on is a service that is called and does not run as the other.
I was last looking over this example Spring EnableEncryptableProperties with Jasypt but I noticed after awhile that it is pulling it's properties with the method call: environment.getRequiredProperty("spring.datasource.username")
The method is pulling from the System variables which I don't see how the propertied get into it. None of the properties that are in my property file are present in the System property level.
What am I missing here as to how to get the system properties updated with what is in the application.properties
file?
The other project is updating the System properties and then calls SpringApplication.run(Application.class, args)
, which is not applicable to this other project as it is not the same type of application.
Would love some guidance. Please no smart remarks as to take a class. I'm doing what I can outside of work but being at step 4 and the project is at step 321 it's going to be awhile before I get there.