direct_x_34
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
I try to run my app as Spring Boot with Couchbase on Docker
Here is my docker-compose.yml
I already install couchbase in my local computer.
I got this error shown below
How can I fix it?
57 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 11/9/2024 in #java-help
Spring Boot with Couchbase running as TestContainer Issue
Can you help me how to fix the issue?
6 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 9/24/2024 in #java-help
Spring Boot - PrePersist and PreUpdate for Couchbase
I try to implement an example of Spring Boot with the usage Couchbase
I have no idea how to implement PrePersist and PreUpdate for Couchbase
Here are my codes shown below
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 8/10/2024 in #java-help
Spring Boot Cache - Cannot Get the value
Here is my application yaml file
Here is the method
How can I fix it as I get the value as ${exchange-api.cache-name} from application.yaml file? I hope you can help me?
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 7/16/2024 in #java-help
Spring Boot Microservices with JWT Issues
I try to implement an example of Spring Boot Microservices with JWT. I have some problems following:
1 ) I cannot run all integration tests of product service even if I defined bearer token
2 ) After login and get access token, I cannot send any request to product service. I got 500 Internal Server Error.
How can I fix it? I hope you can help me?
Here is the repo : https://github.com/Rapter1990/springbootmicroserviceswithsecurity
140 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 3/20/2024 in #java-help
Spring Security - Cannot run logout Integration Test returns 404
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 3/11/2024 in #java-help
Cannot set any value LocalDateTime in Entity of Spring Boot Example
I have a problem to set LocalDateTime.now to the entity of Spring Boot Example
Here is the entity shown below
Here is the BaseEntity shown below
Here is the method shown below
I have also other
entities
extending from BaseEntity
.
I get null
value in checkIn
of savedPark
. I have to manually set the LocalDateTime.now() instead of using @Builder.Default
How can I do that?6 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 3/10/2024 in #java-help
Cannot set any value LocalDateTime in Entity of Spring Boot Example
I have a problem to set LocalDateTime.now to the entity of Spring Boot Example
Here is the entity shown below
Here is the method shown below
I get
null
value in checkIn
of savedPark
. I have to manually set the LocalDateTime.now() instead of using @Builder.Default
How can I do that?12 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 2/20/2024 in #java-help
How to get array info from column in Spring Boot JPA (exception Dialect mapping for JDBC type Error)
I have a problem to get
["role1","role2","role3"]
from roles column.
Here is the entity shown below
Here is the JPARepository shown below
I got nested exception Dialect mapping for JDBC type?
How can I fix it?15 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 12/29/2023 in #java-help
Spring Boot with Kubernetes Java Client API - Edit Namespace
Here is the EditNamespaceRequest shown below
Here is the updateNamespace method of my Service
I have a problem to update Namespace by name through Kubernetes Java Client API.
this error message is shown below when I run
How can I fix it?
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 12/5/2023 in #java-help
How to use OAuth2 in Spring Cloud Gateway as a best practise
I've done some research on the topic. After connecting to the Kubernetes environment with a token and URL, I thought I could integrate OAuth2 with Spring Cloud Gateway directly. What is the best practice for this? Should I structure it as an Auth Service, User Service, and Gateway to progress more easily?
Do you know any resources related to this?
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 12/1/2023 in #java-help
Spring Cloud OAuth2 with Kubernetes
Hi, How's it going? I have a question to you if you can help me.
I'm using the Kubernetes Java Client API to connect to your company's Kubernetes environment. I have URL and token information in that connection. I want to manage authentication and authorization using Spring OAuth2 Server in a microservices-based application. How can I achieve this?
5 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 11/30/2023 in #java-help
Spring Cloud with OAuth2 in Kubernetes
Hi, How's it going? I have a question to you if you can help me.
I'm using the Kubernetes Java Client API to connect to your company's Kubernetes environment. I have URL and token information in that connection. I want to manage authentication and authorization using Spring OAuth2 Server in a microservices-based application. How can I achieve this?
10 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 5/21/2023 in #java-help
Cannot detect API key from .env in my Spring Boot App
I want to create an app to use API Layer for currency exchange. I used a API key of Exchange Rates Data API in apilayer.com.
When I send a request to Get Rates defined in postman_collection in my repo.
I get this error message shown below
Here is the link : https://stackoverflow.com/questions/76300394/cannot-detect-api-key-from-env-in-my-spring-boot-app
How can I fix it?
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 5/19/2023 in #java-help
Cannot invoke "org.springframework.data.domain.Page.getContent()" for Junit Test with the usage of S
I couldn't solve the issue. Can you help me? Here is the link : https://stackoverflow.com/questions/76285005/cannot-invoke-org-springframework-data-domain-page-getcontent-for-junit-test
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 5/4/2023 in #java-help
How to write Integration Test with the usage of Bearer Token in Spring Boot (throw An Authentication
I have a problem to write Integration Test in my Spring Boot example. In my UserController class, every methods are defined with PreAuthorize with roles.
Here is the link : https://stackoverflow.com/questions/76172699/how-to-write-integration-test-with-the-usage-of-bearer-token-in-spring-boot-thr
6 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 5/4/2023 in #java-help
How to write Integration Test with the usage of Bearer Token in Spring Boot (throw An Authentication
I have a problem to write Integration Test in my Spring Boot example. In my UserController class, every methods are defined with PreAuthorize with roles.
Here is the link : https://stackoverflow.com/questions/76172699/how-to-write-integration-test-with-the-usage-of-bearer-token-in-spring-boot-thr
4 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 4/1/2023 in #java-help
com.google.zxing.NotFoundException Spring Boot QR Code Example JUnit Tests
I tried to implement an example of QR Code Generator in Spring Boot.
I have a problem in Service Test and Controller Test.
In Service Test, I cannot decode the byte values in
QRCodeReader().decode(binaryBitmap)
I get this error message shown below when I run any test method
com.google.zxing.NotFoundException
In Controller Test, I get this error message shown below when I run any test method
How can I fix it?
Here is the link : https://github.com/Rapter1990/qr-generator-example5 replies
JCHJava Community | Help. Code. Learn.
•Created by direct_x_34 on 3/31/2023 in #java-help
Cannot send requestbody and Multipartfile in Controller of Spring Boot from Postman
Here is the link : https://stackoverflow.com/questions/75903123/cannot-send-requestbody-and-multipartfile-in-controller-of-spring-boot-from-post
6 replies