Skip to content

Commit 314e2b4

Browse files
committed
Site updated 2024-04-03
1 parent 140c36c commit 314e2b4

File tree

11 files changed

+75
-15
lines changed

11 files changed

+75
-15
lines changed

β€Ž2024/04/02/240403prjtreview11/index.htmlβ€Ž

Lines changed: 59 additions & 3 deletions
Large diffs are not rendered by default.

β€Žcategories/Journal/index.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žcategories/Journal/회고둝/index.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žcategory-sitemap.xmlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99

1010
<url>
1111
<loc>https://sowon-dev.github.io/categories/Journal/%25ED%259A%258C%25EA%25B3%25A0%25EB%25A1%259D/</loc>
12-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
12+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
1313
<changefreq>weekly</changefreq>
1414
<priority>0.2</priority>
1515
</url>
1616

1717
<url>
1818
<loc>https://sowon-dev.github.io/categories/Journal/</loc>
19-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
19+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
2020
<changefreq>weekly</changefreq>
2121
<priority>0.2</priority>
2222
</url>

β€Žcontent.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žindex.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

β€Žpost-sitemap.xmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<url>
1111
<loc>https://sowon-dev.github.io/2024/04/02/240403prjtreview11/</loc>
12-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
12+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
1313
<changefreq>weekly</changefreq>
1414
<priority>0.6</priority>
1515

β€Žrss2.xmlβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@
4343
<guid>https://sowon-dev.github.io/2024/04/02/240403prjtreview11/</guid>
4444
<pubDate>Tue, 02 Apr 2024 20:23:06 GMT</pubDate>
4545

46+
<description>&lt;p&gt;이번 ν”„λ‘œμ νŠΈμ—μ„œλŠ” κ°œμΈμ •λ³΄κ΄€λ¦¬νŽ˜μ΄μ§€(λ§ˆμ΄νŽ˜μ΄μ§€)λ₯Ό μ£Ό μ—…λ¬΄λ‘œ λ§‘μ•˜λ‹€.&lt;br&gt;νŽΈλ¦¬ν•¨κ³Ό 어렀움이 κ³΅μ‘΄ν•œ ν”„λ‘œμ νŠΈμ˜€λŠ”λ° μ•„λž˜μ™€ κ°™λ‹€.&lt;/p&gt;</description>
4647

4748

4849

50+
<content:encoded><![CDATA[<p>이번 ν”„λ‘œμ νŠΈμ—μ„œλŠ” κ°œμΈμ •λ³΄κ΄€λ¦¬νŽ˜μ΄μ§€(λ§ˆμ΄νŽ˜μ΄μ§€)λ₯Ό μ£Ό μ—…λ¬΄λ‘œ λ§‘μ•˜λ‹€.<br>νŽΈλ¦¬ν•¨κ³Ό 어렀움이 κ³΅μ‘΄ν•œ ν”„λ‘œμ νŠΈμ˜€λŠ”λ° μ•„λž˜μ™€ κ°™λ‹€.</p><a id="more"></a><p>νŽΈλ¦¬ν•¨</p><ol><li>μŠ€ν”„λ§λΆ€νŠΈμ˜ νŽΈλ¦¬ν•¨μ— κ°νƒ„ν–ˆλ‹€. μž‘μ—…ν•˜λŠ” λ™μ•ˆ μ„œλ²„λ•Œλ¬Έμ— λΆˆνŽΈν•œ 일이 거의 μ—†μ—ˆλ‹€.</li><li>Thymeleaf κ°„νŽΈν•¨μ— κ°νƒ„ν–ˆλ‹€. JSTLκ³Ό ELμ‚¬μš©ν•˜λ˜λ° 손에 μ΅μ–΄μ„œ μ΄ˆλ°˜μ— 쑰금 λ²„λ²…κ±°λ Έμ§€λ§Œ 이내 Thymeleaf의 가독성 높은 ν‘œν˜„λ°©λ²•μ— λ°˜ν•΄λ²„λ Έλ‹€.</li></ol><p>어렀움</p><ol><li>이번 μž‘μ—…μ€ κ½€λ‚˜ μ–΄λ €μ› λŠ”λ° κ·Έ μ΄μœ λŠ” ν΄λΌμ΄μ–ΈνŠΈμ˜ λΉ„ν˜‘μ‘°λ‘œ λ ˆκ±°μ‹œμ˜ μ‘°κ°μ‘°κ°λ‚œ 쿼리λ₯Ό λ°›μ•„μ„œ μž‘μ—…ν•΄μ•Όν–ˆκΈ° λ•Œλ¬Έμ΄λ‹€. ν…Œμ΄λΈ”κ³Ό 컬럼, 데이터도 μ•Œλ €μ£Όμ§€μ•Šμ•„μ„œ, ν…Œμ΄λΈ”κ³Ό ν”„λ‘œμ‹œμ €λ₯Ό μƒμƒν•˜κ³  μœ μΆ”ν•˜λ©΄μ„œ μž‘μ—…μ„ μ§„ν–‰ν•΄μ•Όν–ˆλ‹€. 덕뢄에 정보가 λΆˆμΆ©λΆ„ν•œ μƒν™©μ—μ„œλ„ μš”κ΅¬μ‚¬ν•­λŒ€λ‘œ κΈ°λŠ₯을 κ΅¬ν˜„ν•˜λŠ” λŠ₯λ ₯을 ν‚€μšΈ 수 μžˆμ—ˆλ‹€. </li></ol><p>μ΄λ ‡κ²Œ ν”„λ‘œμ νŠΈ κ²½ν—˜μΉ˜κ°€ 차곑차곑 μŒ“μ΄κ³  μžˆλ‹€. 쒋은 κ±°λ§žμ§€..?!</p><p><br><br><br></p><h1 id="keep"><a href="#keep" class="headerlink" title="keep"></a>keep</h1><p>ν˜„μž¬ λ§Œμ‘±ν•˜κ³  μžˆλŠ” λΆ€λΆ„κ³Ό κ³„μ†ν•΄μ„œ μ΄μ–΄κ°”μœΌλ©΄ ν•˜λŠ” λΆ€λΆ„</p><ol><li>Thymeleaf 적극 ν™œμš©<ul><li><code>th:block</code> λ₯Ό μ‚¬μš©ν•˜μ—¬ 논리적 μ½”λ“œ λΈ”λ‘ν™”ν•˜μ—¬ 가독성 λ†’μ˜€μœΌλ©° Thymeleaf만의 formatting utilitiesλ₯Ό μ‚¬μš©ν•˜μ—¬ νŽΈλ¦¬ν•˜κ²Œ μž‘μ—…ν•  수 μžˆμ—ˆλ‹€.<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">//자주 μ‚¬μš©ν–ˆλ˜ formatting utilities</span><br><span class="line">$&#123;#strings.isEmpty()&#125;</span><br><span class="line">$&#123;#calendars.format()&#125;</span><br></pre></td></tr></table></figure></li></ul></li><li>μ‚¬μš©μžλ³„ κΆŒν•œλ³„ λ°”λ‘œκ°€κΈ° 메뉴 κ΅¬ν˜„<ul><li>λ°”λ‘œκ°€κΈ° 메뉴λ₯Ό λ§Œλ“œλŠ”λ° μ‚¬μš©μžλ³„λ‘œ μ›ν•˜λŠ” 메뉴듀을 μˆœμ„œλŒ€λ‘œ μ§€μ •ν•  수 있고 μ‚¬μš©μžκ°€ μžμ‹ μ˜ λ°”λ‘œκ°€κΈ°λ©”λ₯˜λ₯Ό μ§€μ •ν•˜μ§€μ•Šμ•˜λ‹€λ©΄ μ‹œμŠ€ν…œκ΄€λ¦¬μžκ°€ κΆŒν•œ(role)λ³„λ‘œ 섀정해놓은 λ°”λ‘œκ°€κΈ°λ₯Ό μˆœμ„œλŒ€λ‘œ λ³΄μ—¬μ£ΌλŠ” 것을 κ΅¬ν˜„ν–ˆλ‹€. μˆœμ„œλŒ€λ‘œλ₯Ό μ–΄λ–»κ²Œ κ΅¬ν˜„ν•  μ§€ κ³ λ―Όν–ˆλŠ”λ° Arrayλ₯Ό μ‚¬μš©ν•΄μ„œ 클릭 μˆœμ„œλŒ€λ‘œ <code>Array.push()</code>ν–ˆκ³  μ œκ±°μ‹œ ν•΄λ‹Ή index의 μš”μ†Œλ₯Ό μ‚­μ œν•˜λ©΄μ„œ Array μˆœμ„œκ°€ κ·ΈλŒ€λ‘œ μœ μ§€λ  수 μžˆλ„λ‘ κ΅¬ν˜„ν–ˆλ‹€.</li></ul></li><li>타이머 λ§Œλ“€κΈ°: setInterval을 ν™œμš©ν•˜μ—¬ 3λΆ„ 타이머 κ΅¬ν˜„<ul><li>μ˜€λžœλ§Œμ— ν•¨μˆ˜λ‘œ λ§Œλ“œλ‹ˆκΉŒ μž¬λ°Œμ—ˆλ‹€.</li></ul></li><li>jQuery 비쀑을 쀄이고 Vanilla JS μ‚¬μš©<ul><li>μ§€λ‚œ ν”„λ‘œμ νŠΈλΆ€ν„° μ˜μ‹μ μœΌλ‘œ jQuery μ‚¬μš©μ„ 쀄이고 Vanilla JSλ₯Ό 더 많이 μ‚¬μš©ν–ˆλ‹€. 바닐라JSλŠ” μ œμ΄μΏΌλ¦¬λ³΄λ‹€ μ½”λ“œλŠ” κΈΈμ–΄μ§€μ§€λ§Œ 제이쿼리APIλ₯Ό λ‹€λ…€μ˜€μ§€μ•Šμ•„λ„ λ˜κΈ°μ— 속도가 λΉ λ₯΄λ‹€. 이미 손에 읡어버린 jQueryλ₯Ό μ˜μ‹μ μœΌλ‘œ 바닐라JSλ₯Ό μ‚¬μš©ν•˜λ €λ‹ˆ μ²˜μŒμ—λŠ” λ²„λ²…κ±°λ Έμ§€λ§Œ ν”„λ‘œμ νŠΈ 갈수둝 코딩속도가 λΆ™μ—ˆλ‹€. λ‹€μŒ ν”„λ‘œμ νŠΈλ„ 바닐라JSλ₯Ό μ˜μ‹μ μœΌλ‘œ μ‚¬μš©ν•΄μ•Όκ² λ‹€.</li></ul></li><li>SVN μ €μž₯μ†Œμ—μ„œ GitLab으둜 λ§ˆμ΄κ·Έλ ˆμ΄μ…˜ν•˜κΈ°<ul><li>λ‹¨λ…μœΌλ‘œ λ§ˆμ΄κ·Έλ ˆμ΄μ…˜μ„ λ‹΄λ‹Ήν•œ 것이 μ²˜μŒμ΄λΌμ„œ μž¬λ°Œμ—ˆλ‹€.</li><li>κ΄€λ ¨ ν¬μŠ€νŒ…: <a href="https://sowon-dev.github.io/2024/04/02/240403svn-to-git/">SVNμ—μ„œ 사내 GitLab으둜 λ³€κ²½ν•˜κΈ°(ft.migration)</a></li></ul></li></ol><p><br><br><br></p><h1 id="Problem"><a href="#Problem" class="headerlink" title="Problem"></a>Problem</h1><p>κ°œμ„ μ΄ ν•„μš”ν•˜λ‹€κ³  μƒκ°λ˜λŠ” λΆ€λΆ„</p><ol><li>였라클 DB ν”„λ‘œμ‹œμ € mybatis와 μ—°λ™ν•˜μ—¬ μ‚¬μš©λ²•<figure class="highlight"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">&lt;select id="callSampleProcedure" statementType="CALLABLE"&gt;</span><br><span class="line"> &#123; call SAMPLE_PROCEDURE(</span><br><span class="line"> <span class="comment">#&#123;param1, mode=IN, jdbcType=VARCHAR&#125;,</span></span><br><span class="line"> <span class="comment">#&#123;param2, mode=OUT, jdbcType=VARCHAR&#125;</span></span><br><span class="line"> )&#125;</span><br><span class="line">&lt;/select&gt;</span><br></pre></td></tr></table></figure></li></ol><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">Map&lt;String, Object&gt; parameterMap = <span class="keyword">new</span> HashMap&lt;&gt;();</span><br><span class="line">parameterMap.put(<span class="string">"param1"</span>, <span class="string">"input_value"</span>);</span><br><span class="line">parameterMap.put(<span class="string">"param2"</span>, <span class="keyword">null</span>); <span class="comment">// Output νŒŒλΌλ―Έν„°λ„ μ„ μ–Έν•΄μ€˜μ•Ό</span></span><br></pre></td></tr></table></figure><p>statementType=”CALLABLE” 을 μ‚¬μš©ν•˜μ—¬ ν”„λ‘œμ‹œμ €λ₯Ό ν˜ΈμΆœν•΄μ•Όν–ˆλ‹€. κ·Έκ±Έ λͺ¨λ₯΄κ³  μ–Όλ§ˆλ‚˜ μ‚½μ§ˆν–ˆλŠ”μ§€β€¦ λ˜ν•œ outνŒŒλΌλ―Έν„°λ„ null둜 μ„ μ–Έν•΄μ€˜μ•Όν•œλ‹€.</p><p><br><br><br></p><h1 id="Try"><a href="#Try" class="headerlink" title="Try"></a>Try</h1><p>Problem의 해결책이 될 수 μžˆλŠ” λΆ€λΆ„</p><ol><li>λ„€νŠΈμ›Œν¬ 곡뢀λ₯Ό ν•˜λ©΄μ„œ 겸사겸사 λ„€νŠΈμ›Œν¬ 관리사2κΈ‰λ₯Ό 취득할 것이닀.<ul><li>ONE ACTION: 24λ…„ 제03회 ν•„κΈ°μ‹ μ²­ 2024-07-26, ν•„κΈ°μ‘μ‹œ 2024-08-25, μ‹€κΈ° 2024-09-29 μ΅œμ’… ν•©κ²©λ°œν‘œ 2024-10-08</li></ul></li><li>Oracle DB 곡뢀</li></ol>]]></content:encoded>
51+
52+
4953
<category domain="https://sowon-dev.github.io/categories/Journal/">Journal</category>
5054

5155
<category domain="https://sowon-dev.github.io/categories/Journal/%ED%9A%8C%EA%B3%A0%EB%A1%9D/">회고둝</category>

β€Žsitemap.xmlβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
<sitemap>
66
<loc>https://sowon-dev.github.io/post-sitemap.xml</loc>
7-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
7+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
88
</sitemap>
99

1010
<sitemap>
1111
<loc>https://sowon-dev.github.io/category-sitemap.xml</loc>
12-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
12+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
1313
</sitemap>
1414

1515
<sitemap>
1616
<loc>https://sowon-dev.github.io/tag-sitemap.xml</loc>
17-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
17+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
1818
</sitemap>
1919

2020
</sitemapindex>

β€Žtag-sitemap.xmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<url>
66
<loc>https://sowon-dev.github.io/tags/%25ED%259A%258C%25EA%25B3%25A0%25EB%25A1%259D/</loc>
7-
<lastmod>2024-04-03T05:45:50.317Z</lastmod>
7+
<lastmod>2024-04-03T06:00:35.819Z</lastmod>
88
<changefreq>weekly</changefreq>
99
<priority>0.2</priority>
1010
</url>

0 commit comments

Comments
Β (0)