Skip to content

Commit

Permalink
custom application.properties usage explained in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
triptighanghas committed Jun 3, 2024
1 parent 12b3dc0 commit 931a6b8
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions bundleserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,19 @@ in the resources/application.yml file change the spring.datasource.password attr
Additional Notes
----------------

For M1 and M2 Mac models please change protobuf-maven-plugin (found in pom.xml file) from
For running server (in server mode), add custom properties in an application.properties file, outside of your git repository
and add its path as program argument on run command.
java -jar {jar file} {custom application.properties file}

Sample application.properties file:
```
<configuration>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
spring.datasource.password = tripti
bundle-server.bundle-store-root = C:/Users/tript/IdeaProjects/DDD/bundleserver
```
to:
Sample server run command:
```
<configuration>
<protocArtifact>com.google.protobuf:protoc:3.5.1:exe:osx-x86_64</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:1.50.2:exe:osx-x86_64</pluginArtifact>
</configuration>
java -jar \target\bundleserver-0.0.1-SNAPSHOT.jar C:/Users/tripti/Downloads/application.properties
```
Do not add your custom application.properties in git

AND: Use IntelliJ IDEA for IDE

0 comments on commit 931a6b8

Please sign in to comment.