Closed markkovari closed 2 months ago
We don't want our application to have literals or a need to be rebuilt to change CORS config for example. This should be read from application.properties.
application.properties
Like this : https://github.com/gfa-cc-after/StudyGroup_1_PET_Clinic_Backend-main/blob/801664cc0e588c1bfbc090ad747b619ea0f93fb1/src/main/java/com/greenfox/dramacsoport/petclinicbackend/config/SecurityConfig.java#L56-L66
https://github.com/gfa-cc-after/Pet-Clinic-GilmoreDevs/blob/521b6b80c84688fbf657ce782a3056b215e9cd65/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java#L29
We don't want our application to have literals or a need to be rebuilt to change CORS config for example. This should be read from
application.properties
.Like this : https://github.com/gfa-cc-after/StudyGroup_1_PET_Clinic_Backend-main/blob/801664cc0e588c1bfbc090ad747b619ea0f93fb1/src/main/java/com/greenfox/dramacsoport/petclinicbackend/config/SecurityConfig.java#L56-L66
https://github.com/gfa-cc-after/Pet-Clinic-GilmoreDevs/blob/521b6b80c84688fbf657ce782a3056b215e9cd65/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java#L29