direct_x_34
direct_x_34
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/10/2024 in #java-help
Spring Boot with Kubernetes Issue
No description
12 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/10/2024 in #java-help
Spring Boot with Kubernetes Issue
@dan1st Here is the docker image location : https://hub.docker.com/repository/docker/noyandocker/todowithcouchbase/general What about other issues?
12 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/6/2024 in #java-help
Type Handler Issue in MyBatis of Spring Boot
@Carter I already mentioned about it in the file.
16 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/6/2024 in #java-help
Type Handler Issue in MyBatis of Spring Boot
@Carter I already shared my issue.
16 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/6/2024 in #java-help
Type Handler Issue in MyBatis of Spring Boot
<select id="getTaskStatusCounts" resultMap="taskStatusCountResultMap" parameterType="com.example.model.QueryRequest">
SELECT
tt.region_name_en AS region,
tt.office_name_en AS office,

CONCAT(
'{',
<foreach collection="years" item="year" separator=",">
<foreach collection="months" item="month" separator=",">
CONCAT('"month_${year}_${month}":',
COUNT(CASE WHEN SUBSTRING(tt.task_finish_time, 1, 7) = CONCAT(#{year}, '-', #{month}) THEN 1 END))
</foreach>
</foreach>,
'}'
) AS monthlyCounts

FROM
task_list tt
<include refid="queryTaskStatusCondition"/>
GROUP BY
tt.region_name_en,
tt.office_name_en
ORDER BY
tt.region_name_en ASC;
</select>
<select id="getTaskStatusCounts" resultMap="taskStatusCountResultMap" parameterType="com.example.model.QueryRequest">
SELECT
tt.region_name_en AS region,
tt.office_name_en AS office,

CONCAT(
'{',
<foreach collection="years" item="year" separator=",">
<foreach collection="months" item="month" separator=",">
CONCAT('"month_${year}_${month}":',
COUNT(CASE WHEN SUBSTRING(tt.task_finish_time, 1, 7) = CONCAT(#{year}, '-', #{month}) THEN 1 END))
</foreach>
</foreach>,
'}'
) AS monthlyCounts

FROM
task_list tt
<include refid="queryTaskStatusCondition"/>
GROUP BY
tt.region_name_en,
tt.office_name_en
ORDER BY
tt.region_name_en ASC;
</select>
I also revised it but I get this error message
ause: java.sql.SQLException: Error converting JSON to Map
; uncategorized SQLException; SQL state [null]; error code [0]; Error converting JSON to Map; nested exception is java.sql.SQLException: Error converting JSON to Map] with root cause
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('"' (code 34)): was expecting comma to separate Object entries
at [Source: (String)"{"month_2022_01":0"month_2022_02":0"month_2022_03":0"month_2023_01":3"month_2023_02":4"month_2023_03":8}"; line: 1, column: 20]
ause: java.sql.SQLException: Error converting JSON to Map
; uncategorized SQLException; SQL state [null]; error code [0]; Error converting JSON to Map; nested exception is java.sql.SQLException: Error converting JSON to Map] with root cause
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('"' (code 34)): was expecting comma to separate Object entries
at [Source: (String)"{"month_2022_01":0"month_2022_02":0"month_2022_03":0"month_2023_01":3"month_2023_02":4"month_2023_03":8}"; line: 1, column: 20]
16 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/6/2024 in #java-help
Type Handler Issue in MyBatis of Spring Boot
@Chichko Dibel @Carter @tjoener Can anyone help me fix the issue?
16 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 12/6/2024 in #java-help
Type Handler Issue in MyBatis of Spring Boot
@Expert Can you help me?
16 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
COUCHBASE_USERNAME=Administrator COUCHBASE_PASSWORD=123456 COUCHBASE_BUCKET=todo_list COUCHBASE_HOST=127.0.0.1
57 replies
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 already shared .env file in txt file.
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
@dan1st Can you help me?
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
@dan1st This is .env file as you can see.
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
COUCHBASE_USERNAME=Administrator COUCHBASE_PASSWORD=123456 COUCHBASE_BUCKET=todo_list COUCHBASE_HOST=127.0.0.1 Here is my .env I used it both in local and Docker @dan1st
57 replies
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 use the same password for Couchbase in both local and Docker part.
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
Here is the full log?
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
No description
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
No description
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
No description
57 replies
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 do the same thing in Docker.
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
It cannot run on Docker.
57 replies
JCHJava Community | Help. Code. Learn.
Created by direct_x_34 on 11/22/2024 in #java-help
Docker Issue in Spring Boot with Couchbase
No description
57 replies