Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Sep 3, 2024
1 parent 3266f65 commit f2fdca4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ ng:
- source: "libs/botwrap4j-v1.0.0.jar"
- source: "libs/redis4j-v1.0.0.jar"
- source: "libs/rmq4j-v1.0.0.jar"
- source: "libs/clarify4j-v1.0.0.jar"
Binary file added libs/clarify4j-v1.0.0.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/com/suit4j/app/AppApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@SuppressWarnings({"SpellCheckingInspection"})
@SpringBootApplication
@ComponentScan(basePackages = {"com.suit4j.app", "org.force4j", "org.botwrap4j", "org.redis4j", "org.rmq4j"})
@ComponentScan(basePackages = {"com.suit4j.app", "org.force4j", "org.botwrap4j", "org.redis4j", "org.rmq4j", "org.clarify4j"})
public class AppApplication {

public static void main(String[] args) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.suit4j.app.controllers;

import com.suit4j.app.services.CommonService;
import org.clarify4j.common.annotation.ExecutorSince;
import org.force4j.common.Force4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
Expand All @@ -20,6 +21,7 @@ public CommonController(CommonService commonService) {
this.commonService = commonService;
}

@ExecutorSince
@GetMapping("/health")
public @ResponseBody ResponseEntity<?> inform() {
WrapResponse<?> response = new HttpWrapBuilder<>()
Expand All @@ -30,6 +32,7 @@ public CommonController(CommonService commonService) {
return new ResponseEntity<>(response, HttpStatus.valueOf(response.getStatusCode()));
}

@ExecutorSince
@PostMapping("/health")
public @ResponseBody ResponseEntity<?> inform(@RequestBody Object request) {
WrapResponse<?> response = new HttpWrapBuilder<>()
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spring:
# noinspection SpellCheckingInspection
redis4j: # Redis4J specific configuration
enabled: false # Toggle to enable or disable Redis4J
debugging: true # Toggle debugging for Redis4J
debugging: false # Toggle debugging for Redis4J
test_on_borrow: true # Test the connection on borrowing from the pool
test_on_return: true # Test the connection on returning to the pool
test_while_idle: true # Test the connection while idle in the pool
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,11 @@
<appender-ref ref="CONSOLE-DEBUG"/>
</logger>

<logger name="org.clarify4j.*" level="DEBUG" additivity="false">
<appender-ref ref="FILE-ROLLING-DEBUG"/>
<appender-ref ref="CONSOLE-DEBUG"/>
</logger>

<logger name="java.sql.PreparedStatement" level="DEBUG">
<appender-ref ref="FILE-ROLLING-DEBUG"/>
</logger>
Expand Down

0 comments on commit f2fdca4

Please sign in to comment.