Skip to content

Commit

Permalink
Feat: Add springboot-mongodb app w/Signed-off-by: Poz Chou <mail@illt…
Browse files Browse the repository at this point in the history
…amer.com>

Signed-off-by: IllTamer <78360471+IllTamer@users.noreply.github.com>
  • Loading branch information
IllTamer committed Nov 28, 2023
1 parent a9962b3 commit 6075e8e
Show file tree
Hide file tree
Showing 42 changed files with 735 additions and 33 deletions.
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/
../.idea/
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
Expand Down Expand Up @@ -175,15 +175,15 @@ Temporary Items
.history
.ionide
.env
target/springbootapp-0.0.1-SNAPSHOT.jar
target/springbootapp-0.0.1-SNAPSHOT.jar.original
../../../private/samples-java/springboot-jpa/target/springbootapp-0.0.1-SNAPSHOT.jar
../../../private/samples-java/springboot-jpa/target/springbootapp-0.0.1-SNAPSHOT.jar.original
.jar
# Support for Project snippet scope

# End of https://www.toptal.com/developers/gitignore/api/macos,linux,jetbrains,visualstudiocode

HELP.md
target/
../../../private/samples-java/springboot-jpa/target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
Expand Down
2 changes: 1 addition & 1 deletion README.md → springboot-jpa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ There are 2 ways to test the application with Keploy.

_NOTE: You will be required to set the `javaagent` again in your test profile just like below._

![run_configuration](./src/main/resources/Run_Configuration.png "Run_Configuration")
![run_configuration](src/main/resources/Run_Configuration.png "Run_Configuration")

- Now that we have our testcase captured, run the unit test file (`SampleJavaApplication_Test.java`) already present in
the sample app repo.
Expand Down
File renamed without changes.
18 changes: 10 additions & 8 deletions pom.xml → springboot-jpa/pom.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.3</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>springbootapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>samples_java</name>
<groupId>org.example</groupId>
<artifactId>springboot-jpa</artifactId>
<version>1.0-SNAPSHOT</version>
<name>springboot-jpa</name>
<description>Spring Boot PostgreSQL JPA, Hibernate CRUD Restful API example</description>
<properties>
<java.version>1.8</java.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
Expand Down Expand Up @@ -167,7 +169,7 @@
<configuration>
<!-- <skipTests>true</skipTests>-->
<argLine>
<!-- -javaagent:/Users/gouravkumar/Desktop/Keploy/Keploy-SDKs/java-sdk/agent/target/agent-1.0.0-SNAPSHOT.jar-->
<!-- -javaagent:/Users/gouravkumar/Desktop/Keploy/Keploy-SDKs/java-sdk/agent/target/agent-1.0.0-SNAPSHOT.jar-->
-javaagent:/Users/gouravkumar/Desktop/Keploy/KPOCs/google-map-spring-boot-starter/src/main/resources/agentJars/agent-1.2.8.jar
-javaagent:${settings.localRepository}/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=target/jacoco.exec
</argLine>
Expand Down Expand Up @@ -215,4 +217,4 @@

</build>

</project>
</project>
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

delete from employees;
delete from users;


insert into employees
insert into users
values (1, 'Gourav', 'Kumar', 'gkrosx@gmail.com', 1661500330);
insert into employees
values (2, 'Sarthak', 'Sharma', 'ss@gmail.com', 1661500450);
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 6075e8e

Please sign in to comment.