CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2021-07-12
by sephoro

Original Post

Original - Posted on 2021-07-12
by sephoro



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I know I might be a bit late but I have been battling with the same problem. Most of the answers provided don't really specify how to go about when your application has to be deployed to different environment servers. So after doing a little bit of digging up, here is what I discovered and did:
1. Create an ``application.properties`` file with the following in it: ``spring.profiles.active=<env>`` where ``<env>`` is the environment you want your spring boot application to point at. 2. Wrap it as a jar file using the following command: ``jar -cf <env>-profile.jar application.properties``. 3. Within your WebLogic server domain in there is a ``lib`` directory, upload the jar file you just created in that directory and restart the Weblogic server.
Repeat, changing the ``<env>`` environment, to make a jar for all the server environments you want to upload your Spring Boot application to point to. For example for test the ``application.properties`` file will have the following line in it: ``spring.profiles.active=test`` and the jar will be ``test-profile.jar``

I know I might be a bit late but I have been battling with the same problem. Most of the answers provided don't really specify how to go about when your application has to be deployed to different environment servers. So after doing a little bit of digging up, here is what I discovered and did:
1. Create an ``application.properties`` file with the following in it: ``spring.profiles.active=<env>`` where ``<env>`` is the environment you want your spring boot application to point at. 2. Wrap it as a jar file using the following command: ``jar -cf <env>-profile.jar application.properties``. 3. Within your WebLogic server domain in there is a ``lib`` directory, upload the jar file you just created in that directory and restart the Weblogic server.
Repeat, changing the ``<env>`` environment, to make a jar for all the server environments you want to upload your Spring Boot application to point to. For example for test the ``application.properties`` file will have the following line in it: ``spring.profiles.active=test`` and the jar will be ``test-profile.jar``


        
Present in both answers; Present only in the new answer; Present only in the old answer;