์ „์ฒด ๊ธ€ 404

[Eclipse] ๋„์–ด์“ฐ๊ธฐ(Space), ํƒญ(Tab), ๊ฐœํ–‰(Enter) ํ‘œ์‹œํ•˜๊ธฐ

์ดํด๋ฆฝ์Šค์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋„์–ด์“ฐ๊ธฐ, ํƒญ, ๊ฐœํ–‰์„ ํ‘œ์‹œํ•ด์ค„ ์ˆ˜ ์žˆ๋‹ค ์„ค์ • ํ•˜๋Š”๋ฒ• Window -> Preferences -> General -> Editors -> Text Editors -> โ–กShow whitespace characters ์ฒดํฌํ•˜๊ธฐ

Dev_Tool/Eclipse 2022.12.08

[Oracle] TNS-12545: ๋Œ€์ƒ ํ˜ธ์ŠคํŠธ ๋˜๋Š” ๊ฐœ์ฒด๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์•„ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค

์–ด์ œ๊นŒ์ง€ ์ž˜๋˜๋˜ ์˜ค๋ผํดDB๊ฐ€ ๊ฐ‘์ž๊ธฐ DB์—ฐ๊ฒฐ์„ ํ•˜์ง€ ๋ชปํ•˜๋ฉด์„œ DBeaver์—์„œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค # ๋ฆฌ์Šคํ„ฐ ์ƒํƒœ ํ™•์ธ C:\>lsnrctl status lsnrctl status๋ช…๋ น์–ด๋กœ ๋ฆฌ์Šค๋„ˆ๋ฅผ ํ™•์ธํ•ด๋ณด๋‹ˆ TNS-12545: ๋Œ€์ƒ ํ˜ธ์ŠคํŠธ ๋˜๋Š” ๊ฐœ์ฒด๊ฐ€ ์กด์žฌํ•˜์ง€ ์•Š์•„ ์—ฐ๊ฒฐ์— ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค ์—๋Ÿฌ๋ฅผ ๋ฐœ์ƒํ–ˆ๋‹ค ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์„ ๊ฒ€์ƒ‰์ค‘ ์ปดํ“จํ„ฐ์ด๋ฆ„(Hostname)์„ ๋ณ€๊ฒฝํ›„ ์ ‘์†์ด ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋Š”๊ฒƒ์„ ๋ฐœ๊ฒฌํ–ˆ๋‹ค Oracle XE ์ปดํ“จํ„ฐ ์ด๋ฆ„(Hostname) ๋ณ€๊ฒฝํ›„ ์ ‘์† ์•ˆ๋  ๋•Œ Oracle XE๊ฐ€ ์„ค์น˜๋œ ์ปดํ“จํ„ฐ์˜ ์ด๋ฆ„์„ ๋ณ€๊ฒฝํ•œ ํ›„ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ ‘์†์ด ์•ˆ๋  ๋•Œ ์ฒ˜๋ฆฌ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. ๋‹ค์Œ ํด๋”์—์„œ ๋‘ ๊ฐœ์˜ ํŒŒ์ผ๋‚ด์— ์ปดํ“จํ„ฐ ์ด๋ฆ„์„ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค. oraclexe\app\oracle\product\11.2.0\server\networ ..

Dev_Log 2022.12.08

[Eclipse] CodeTemplates ์„ค์ •ํ›„ JavaDoc์‚ฌ์šฉํ•˜๊ธฐ

์ดํด๋ฆฝ์Šค์—๋Š” ์ž๋ฐ”๋… ํ˜•์‹์˜ ์ฃผ์„์„ ํ•„์š”์— ๋”ฐ๋ผ ํ…œํ”Œ๋ฆฟ์œผ๋กœ ์ €์žฅํ•ด ๋ถˆ๋Ÿฌ์˜ฌ ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์ด ์žˆ๋‹ค JavaDocํ…œํ”Œ๋ฆฟ ์„ค์ •ํ•˜๊ธฐ 1. ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘์„ฑ Window -> Preferences -> Java -> Code Style -> Code Templates 2. Types(ํด๋ž˜์Šค), Methods(๋ฉ”์†Œ๋“œ)์˜ ํ…œํ”Œ๋ฆฟ ์Šคํƒ€์ผ ์ž‘์„ฑํ•˜๊ธฐ 3. ๋‹จ์ถ•ํ‚ค๋กœ ์‚ฌ์šฉํ•ด๋ณด๊ธฐ( ํ•ด๋‹น๋Œ€์ƒ ํด๋ฆญํ›„ Alt + Shift + J )

Dev_Tool/Eclipse 2022.12.08

[MyBatis] java.sql.SQLSyntaxErrorException: ORA-00979: GROUP BY ํ‘œํ˜„์‹์ด ์•„๋‹™๋‹ˆ๋‹ค.

[์—๋Ÿฌ ๋กœ๊ทธ] java.sql.SQLSyntaxErrorException: ORA-00979: GROUP BY ํ‘œํ˜„์‹์ด ์•„๋‹™๋‹ˆ๋‹ค. ์ด ์—๋Ÿฌ๋Š” ์ด์ƒํ•˜๊ฒŒ๋„ ์ฟผ๋ฆฌ๋ฅผ ์ง์ ‘ SQLํˆด์—์„œ ๋Œ๋ ค๋ณด๋ฉด ๋ฌธ์ œ์—†์ด ์‹คํ–‰๋˜๋Š”๋ฐ ๋งˆ์ด๋ฐ”ํ‹ฐ์Šค์—์„œ ์‹คํ–‰ํ•˜๊ฒŒ๋˜๋ฉด ์—ฌ๊น€์—†์ด ์ € ์—๋Ÿฌ๋ฅผ ๋ฐœ์ƒ์‹œํ‚จ๋‹ค โœ” Solution ํ•ด๊ฒฐํ•˜๊ธฐ์œ„ํ•ด ๊ฒ€์ƒ‰์„ ํ•ด๋ณด๋ฉด ์ฒซ๋ฒˆ์งธ๋กœ๋Š” ์ •๋ง๋กœ ๋ฌธ๋ฒ•์„ ํ‹€๋ฆฐ ๊ฒฝ์šฐ์ด๋‹ค ํ•˜์ง€๋งŒ ๋‚˜์˜ ๊ฒฝ์šฐ์—๋Š” SQLํˆด์—์„œ๋Š” ์ •์ƒ์‹คํ–‰์ด ๋˜์—ˆ๊ธฐ๋•Œ๋ฌธ์— SQL๋ฌธ๋ฒ•์˜ ๋ฌธ์ œ๋Š” ์•„๋‹ˆ๋‹ค ์กฐ๊ธˆ๋” ๊ฒ€์ƒ‰ํ•ด๋ณธ๊ฒฐ๊ณผ ๋งˆ์ด๋ฐ”ํ‹ฐ์Šค์˜ ๋™์ž‘ ๋ฐฉ์‹์— ๋ฌด์–ธ๊ฐ€ ์žˆ๋‹ค๋Š”๊ฒƒ์„ ์•Œ์•˜๋‹ค ์ž์„ธํ•œ ์ด์œ ๋Š” ์ฐพ์•„๋ด์•ผ ์•Œ๊ฒ ์ง€๋งŒ https://okky.kr/articles/221268 ์ด ๊ธ€์„ ๋ณด๊ณ  ์•Œ๊ฒŒ๋˜์—ˆ๋‹ค ๊ทธ๋ž˜์„œ GROUP BY์— ์ž‘์„ฑ๋˜์–ด์žˆ๋Š” TO_CHARํ•จ์ˆ˜๋ฅผ ์ œ๊ฑฐํ–ˆ๊ณ  ์ •์ƒ๋™์ž‘ํ•˜๋Š”๊ฒƒ์„ ํ™•์ธํ–ˆ๋‹ค

Dev_Log 2022.11.28

[MyBatis] Caused by: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping

-๋งˆ์ด๋ฐ”ํ‹ฐ์Šค์—์„œ dao์—์„œ ๋ฐ›์•„์˜จ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ๋ฐ”์ธ๋”ฉ ์‹œ์ผœ ์‚ฌ์šฉ์ค‘์ธ๋ฐ ํ•ด๋‹น ์—๋Ÿฌ ๋ฐœ์ƒ [์—๋Ÿฌ ๋กœ๊ทธ] Caused by: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='searchSdate', mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parame..

Dev_Log 2022.11.28

[MyBatis] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for

[์—๋Ÿฌ ๋กœ๊ทธ] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for โœ” Solution dao์—์„œ ํ˜ธ์ถœํ•˜๋Š” ๋„ค์ž„์ŠคํŽ˜์ด์Šค์™€ id๊ฐ€ xml์— ์ •์˜๋œ ๋„ค์ž„์ŠคํŽ˜์ด์Šค์™€ id๊ฐ€ ์ผ์น˜ํ•˜๋Š”์ง€ ํ™•์ธ

Dev_Log 2022.11.28

[MyBatis] java.lang.IllegalArgumentException: Mapped Statements collection already contains value for

-๋งคํผxml ์ž‘์„ฑํ›„ ํ”„๋กœ์ ํŠธ ๊ตฌ๋™์‹œ ์—๋Ÿฌ ๋ฐœ์ƒ [์—๋Ÿฌ ๋กœ๊ทธ] java.lang.IllegalArgumentException: Mapped Statements collection already contains value for โœ” Solution ๋งคํผxml์— ์ •์˜๋œ ๋„ค์ž„์ŠคํŽ˜์ด์Šค๊ฐ€ ์ค‘๋ณต๋ ๋•Œ ๋ฐœ์ƒํ•œ๋‹ค ๋”ฐ๋ผ์„œ ์ค‘๋ณต๋œ ๋„ค์ž„์ŠคํŽ˜์ด์Šค๋ฅผ ์ฐพ์•„ ์ˆ˜์ •ํ•ด์ค€๋‹ค

Dev_Log 2022.11.28

[SpringBoot] Application run failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzDataSourceInitializer' defined in class path resource [org/springframework/boot/autoconfigure/quartz/QuartzAutoConfiguration..

-์Šคํ”„๋ง ๋ถ€ํŠธ datasource๋ฅผ ์˜ค๋ผํด๋กœ ์„ค์ •ํ•œ๋’ค ๊ตฌ๋™์‹œ ์—๋Ÿฌ ๋ฐœ์ƒ [์—๋Ÿฌ ๋กœ๊ทธ] Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzDataSourceInitializer' defined in class path resource [org/springframework/boot/autoconfigure/quartz/QuartzAutoConfiguration$JdbcStoreTypeConfiguration.class]: Invocation of init method failed; nested exception is java.lang.RuntimeEx..

Dev_Log 2022.11.21