lars
lars
JCHJava Community | Help. Code. Learn.
Created by F4F on 1/24/2025 in #java-help
ThreadPoolTaskExecutor - Configuration way.
which file?
28 replies
JCHJava Community | Help. Code. Learn.
Created by F4F on 1/24/2025 in #java-help
ThreadPoolTaskExecutor - Configuration way.
How are you getting the threadProperties in your case?
28 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Can't a server also fetch some data from another server?
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Yes
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
But what would happen to it when another request comes that fetches record for another "id". Won't it just return the response for a previous request if it was saved.
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Is there a way that the class that contains the function that I am calling to fetch the response handles this rather than handling it across the codebase.
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
That would require me to pass the same response across my codebase to various functions.
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
In the api flow if there is some condition met then I am making an api call to another service to fetch response. Now in the same flow later if some other condition is met then I have to make that call again and fetch essentially the same response that I got the first time. What I want is a way to save this response the first time in some variable and in the second call if this is not null then I return this else make the api call again. Is this clear enough or do you need me to provide some code example for this?
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 11/27/2024 in #java-help
Using singleton pattern at a request level basis
Can you elaborate please?
34 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
My mistake I duplicated the file in another package that's why it was throwing an error. It works now
25 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
I am using it like this
@Service
@Slf4j
@RequiredArgsConstructor
public class AdminService {
private final AuthClientHelper authClientHelper;
private final AdminServiceClient adminServiceClient;
...
...
@Service
@Slf4j
@RequiredArgsConstructor
public class AdminService {
private final AuthClientHelper authClientHelper;
private final AdminServiceClient adminServiceClient;
...
...
25 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
Here's the error.
25 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
yeah it works but a new error came.
25 replies
JCHJava Community | Help. Code. Learn.
Created by lars on 6/1/2023 in #java-help
Getting Slf4J error in SpringBoot
Now it's throwing this error
✗ avkash-service (main) ✗ mvn clean
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.version' for org.jetbrains:annotations:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 1, column 1952
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-openfeign:jar is missing. @ line 1, column 2151
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.pchf:avkash-service:0.0.1-SNAPSHOT (/Users/shivam.nayak/Documents/piramal/avkash-service/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-openfeign:jar is missing. @ line 1, column 2151
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
✗ avkash-service (main) ✗ mvn clean
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.version' for org.jetbrains:annotations:jar is either LATEST or RELEASE (both of them are being deprecated) @ line 1, column 1952
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-openfeign:jar is missing. @ line 1, column 2151
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.pchf:avkash-service:0.0.1-SNAPSHOT (/Users/shivam.nayak/Documents/piramal/avkash-service/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-openfeign:jar is missing. @ line 1, column 2151
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
25 replies