Skip to content

Commit c846c1e

Browse files
committed
Added spring boot XML API
1 parent a059e83 commit c846c1e

File tree

26 files changed

+725
-5
lines changed

26 files changed

+725
-5
lines changed

quartz-scheduler/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ dependencies {
2626
testImplementation 'org.springframework.boot:spring-boot-starter-test'
2727
implementation 'org.springframework.boot:spring-boot-starter-quartz'
2828

29-
implementation 'org.springframework.boot:spring-boot-starter-validation'
30-
3129
implementation 'com.opencsv:opencsv:5.9'
3230
implementation 'org.springframework.boot:spring-boot-starter-actuator'
3331

quartz-scheduler/readme.md

Whitespace-only changes.

quartz-scheduler/src/main/java/com/stacktips/app/api/QuartzJobEndpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.springframework.stereotype.Component;
1010

1111
@Component
12-
@Endpoint(id = "quartz-jobs")
12+
@Endpoint(id = "manage/jobs")
1313
public class QuartzJobEndpoint {
1414

1515
private static final Logger log = LoggerFactory.getLogger(QuartzJobEndpoint.class);
@@ -29,7 +29,7 @@ public void manageJob(String action, String jobName, String jobGroup) {
2929
quartzJobService.stopJob(jobName, jobGroup);
3030
}
3131
} catch (SchedulerException e) {
32-
log.error("Error: {}", e.getMessage());
32+
log.error("Error while managing job", e);
3333
}
3434
}
3535
}

quartz-scheduler/src/main/java/com/stacktips/app/service/QuartzJobService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,4 @@ public void updateJob(String triggerName, String newTriggerName, String jobName,
6262
scheduler.deleteJob(JobKey.jobKey(jobName, jobGroup));
6363
}
6464

65-
6665
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
HELP.md
2+
.gradle
3+
build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### STS ###
9+
.apt_generated
10+
.classpath
11+
.factorypath
12+
.project
13+
.settings
14+
.springBeans
15+
.sts4-cache
16+
bin/
17+
!**/src/main/**/bin/
18+
!**/src/test/**/bin/
19+
20+
### IntelliJ IDEA ###
21+
.idea
22+
*.iws
23+
*.iml
24+
*.ipr
25+
out/
26+
!**/src/main/**/out/
27+
!**/src/test/**/out/
28+
29+
### NetBeans ###
30+
/nbproject/private/
31+
/nbbuild/
32+
/dist/
33+
/nbdist/
34+
/.nb-gradle/
35+
36+
### VS Code ###
37+
.vscode/
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
plugins {
2+
id 'java'
3+
id 'org.springframework.boot' version '3.2.2'
4+
id 'io.spring.dependency-management' version '1.1.4'
5+
}
6+
7+
group = 'com.stacktips'
8+
version = '0.0.1-SNAPSHOT'
9+
10+
java {
11+
sourceCompatibility = '17'
12+
}
13+
14+
configurations {
15+
compileOnly {
16+
extendsFrom annotationProcessor
17+
}
18+
}
19+
20+
repositories {
21+
mavenCentral()
22+
}
23+
24+
dependencies {
25+
implementation 'org.springframework.boot:spring-boot-starter-web'
26+
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
27+
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml'
28+
29+
compileOnly 'org.projectlombok:lombok'
30+
annotationProcessor 'org.projectlombok:lombok'
31+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
32+
}
33+
34+
tasks.named('test') {
35+
useJUnitPlatform()
36+
}
42.4 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

spring-boot-movies-xml-api/gradlew

Lines changed: 249 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)