๐Ÿ‘จ‍๐Ÿ’ป kimtongting
ajax ์†Œ์†์œผ๋กœ ์กฐ์ง ๊ฐ€์ ธ์˜ค๊ธฐ.

*์†Œ์†์„ ํ†ตํ•ด ํ•ด๋‹น ์†Œ์†์˜ ๊ฐ€๋งน์  ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ค์ž. java - controller //๊ฐ€๋งน์  ๋ชฉ๋ก @RequestMapping(value = "/aJaxUserOrgList.do", method = RequestMethod.GET) public void aJaxUserOrgList(HttpSession session, HttpServletRequest request, HttpServletResponse response) { //Controller์—์„œ ๋ฐ”๋กœ write๋ฅผ ํ•ด์ค„ ์˜ˆ์ •์ด๊ธฐ์— ๋ฐ˜ํ™˜ํ˜•์€ void. ๋•Œ์— ๋”ฐ๋ผ ์ˆ˜์ • //Log4j2.logger.info(Log4j2.log + getClass + Util.getMethodName()); //javascript์—์„œ ํ˜ธ์ถœํ•œ Parameter. String..

2020.12.21 Clean Code - ๋กœ๋ฒ„ํŠธ C.๋งˆํ‹ด

Program Programming Programmer ์—ฌ๋Ÿฌ๋ถ„์˜ ์ฝ”๋“œ๋Š” ์–ด๋Š ๋ฌธ์— ํ•ด๋‹นํ• ๊นŒ? ์—ฌ๋Ÿฌ๋ถ„์˜ ํŒ€์ด๋‚˜ ํšŒ์‚ฌ๋Š”? ์™œ ๊ทธ๋ ‡๊ฒŒ ๋˜์—ˆ๋Š”๊ฐ€? ๊ทธ์ € ์ผ์ƒ์ ์ธ ์ฝ”๋“œ ๊ฒ€ํ†  ํšŒ์˜์ธ๊ฐ€? ์•„๋‹ˆ๋ฉด, ์ถœ์‹œ ์งํ›„ ๋”์ฐํ•œ ๋ฌธ์ œ๊ฐ€ ๋“œ๋Ÿฌ๋‚ฌ๋Š”๊ฐ€? ๋Œ์•„๊ฐ„๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋˜ ์ฝ”๋“œ๋ฅผ ํ—ˆ๊ฒ์ง€๊ฒ ๋””๋ฒ„๊น…ํ•˜๋Š”๊ฐ€? ๊ณ ๊ฐ์ด ๋ฌด๋”๊ธฐ๋กœ ์ดํƒˆํ•˜๊ณ , ๊ด€๋ฆฌ์ž๊ฐ€ ์••๋ฐ•์„ ๊ฐ€ํ•˜๋Š”๊ฐ€? ๋‚œ๊ด€์— ๋ถ€์ง–ํž ๋•Œ ์˜ณ์€ ๋ฌธ ๋’ค์— ์žˆ์œผ๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ• ๊นŒ? ๋‹ต์€ ์žฅ์ธ ์ •์‹ ์ด๋‹ค. ์žฅ์ธ ์ •์‹  ์žฅ์ธ ์ •์‹ ์„ ์ตํžˆ๋Š” ๊ณผ์ •์€ ๋‘ ๋‹จ๊ณ„๋กœ ๋‚˜๋‰œ๋‹ค. ๋ฐ”๋กœ ์ด๋ก ๊ณผ ์‹ค์ „์ด๋‹ค. ์ฒซ์งธ, ์žฅ์ธ์—๊ฒŒ ํ•„์š”ํ•œ ์›์น™, ํŒจํ„ด, ๊ธฐ๋ฒ•, ๊ฒฝํ—˜์ด๋ผ๋Š” ์ง€์‹์„ ์Šต๋“ํ•ด์•ผ ํ•œ๋‹ค. ๋‘˜์งธ, ์—ด์‹ฌํžˆ ์ผํ•˜๊ณ  ์—ฐ์Šตํ•ด ์ง€์‹์„ ๋ชธ๊ณผ ๋งˆ์Œ์œผ๋กœ ์ฑ„๋“ํ•ด์•ผ ํ•œ๋‹ค. ์ž์ „๊ฑฐ ์ด๋ก ๊ณผ ์žฅ์ธ ์ •์‹  ์ž์ „๊ฑฐ ํƒ€๊ธฐ์— ๊ด€ํ•œ ๋ฌผ๋ฆฌ์ ์ธ ์ง€์‹์€ ์–ผ๋งˆ๋“ ์ง€ ๊ฐ€๋ฅด์น  ์ˆ˜..

tomcat ํฌํŠธํฌ์›Œ๋”ฉ / tomcat ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ 8080 - 80

๋ฆฌ๋ˆ…์Šค๋ฅผ ํ™œ์šฉํ•˜๋‹ค๋ณด๋ฉด ์ง์ ‘์ ์ธ ์ ‘๊ทผ์„ ๋ง‰๊ธฐ์œ„ํ•ด ํฌํŠธํฌ์›Œ๋”ฉ์„ ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค. ํ†ฐ์บฃ์€ 80ํฌํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋‹ค. firewall ๋ฐฉํ™”๋ฒฝ์„ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ๋Š” ๋ฐฉํ™”๋ฒฝ ์ƒ์—์„œ ์ปจํŠธ๋กค ๊ฐ€๋Šฅํ•˜๋‹ค. ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๊ฐ„๋‹จํ•˜๊ฒŒ tomcat ํฌํŠธํฌ์›Œ๋”ฉ์„ ํ•  ์ˆ˜ ์žˆ๋‹ค. $ firewall-cmd --add-forward-port=port=80:proto=tcp:toport=8080 --permanent success $ firewall-cmd --permanent --direct --add-rule ipv4 nat OUTPUT 0 -p tcp -o lo --dport 80 -j REDIRECT --to-port 8080 success $ firewall-cmd --reload

article thumbnail
Vue ์‹œ์ž‘ํ•˜๊ธฐ / Vue ์„ค์น˜ํ•˜๊ธฐ / ๋ทฐ ์‹œ์ž‘ํ•˜๊ธฐ

์ด ํฌ์ŠคํŒ…์€ Windows ์œ ์ €๋ฅผ ๋Œ€์ƒ์œผ๋กœ ํฌ์ŠคํŒ… ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋ฌด์ž‘์ • ๋”ฐ๋ผํ•˜๊ธฐ Vue ํŽธ. Vue ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค ๋•Œ๋Š” Node.js์™€ npm์„ ๋ฐ˜๋“œ์‹œ ๋จผ์ € ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. Node.js ๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. Node.js ๋งํฌ : nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org ๋ณธ์ธ์—๊ฒŒ ๋งž๋Š” ๋ฒ„์ „์„ ์„ค์น˜ํ•˜์„ธ์š” : ) ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด, ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์—ด๊ณ , ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ œ๋Œ€๋กœ ์„ค์น˜ํ–ˆ๋Š”์ง€ ํ™•์ธํ•ด๋ด…๋‹ˆ๋‹ค. $ node -v ๊ทธ ํ›„, npm ์œผ๋กœ ์šฐ๋ฆฌ์˜ ๋ชฉ์ ์ธ vue ๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. $ npm install vue vue ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜์—ˆ์œผ๋ฉด, vue ๋ช…๋ น์–ด์™€ ๋น ๋ฅธ ..

article thumbnail
Faceted Project Problem (Eclipse ์—๋Ÿฌ)

๐Ÿ“”Faceted Project Problem Description Type Target runtime Apache Tomcat v5.5 is not defined. Faceted Project Problem ๐Ÿ“„์›์ธ ๐Ÿ“ํ”„๋กœ์ ํŠธ๋ฅผ ์ธ์ˆ˜์ธ๊ณ„ ๋ฐ›๊ฑฐ๋‚˜, ์šด์˜์ฒด์ œ๋ฅผ ๋น„๋กฏํ•œ PC๋ฅผ ์˜ฎ๊ธธ ๊ฒฝ์šฐ ๋ฐœ์ƒํ•˜๋Š” ์ผ€์ด์Šค ๐Ÿ“„๋ฌธ์ œ ํ•ด๊ฒฐ ํ•ด๋‹น ํ”„๋กœ์ ํŠธ์˜ Properties (ํ”„๋กœ์ ํŠธ ์„ ํƒ ํ›„, Alt+Enter) ๋กœ ๋“ค์–ด๊ฐ„ ํ›„, Targeted Runtimes ์˜ ๋ฉ”๋‰ด๋ฅผ ์„ ํƒํ•˜๊ณ , ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ• (ํ˜„์žฌ ์„ค์น˜๋˜์–ด์žˆ๋Š”) Tomcat ์„œ๋ฒ„๋ฅผ ์„ ํƒํ•œ๋‹ค. + Apply

article thumbnail
React ์‹œ์ž‘ํ•˜๊ธฐ / React ์„ค์น˜ํ•˜๊ธฐ / ๋ฆฌ์•กํŠธ ์‹œ์ž‘ํ•˜๊ธฐ

์ด ํฌ์ŠคํŒ…์€ Windows ์œ ์ €๋ฅผ ๋Œ€์ƒ์œผ๋กœ ํฌ์ŠคํŒ… ํ•˜์˜€์Šต๋‹ˆ๋‹ค. ๋ฌด์ž‘์ • ๋”ฐ๋ผํ•˜๊ธฐ React ํŽธ. ๋ฆฌ์•กํŠธ ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“ค ๋•Œ๋Š” Node.js์™€ npm์„ ๋ฐ˜๋“œ์‹œ ๋จผ์ € ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. Node.js ๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. Node.js ๋งํฌ : nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org ๋ณธ์ธ์—๊ฒŒ ๋งž๋Š” ๋ฒ„์ „์„ ์„ค์น˜ํ•˜์„ธ์š” : ) ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด, ํ„ฐ๋ฏธ๋„ ์ฐฝ์„ ์—ด๊ณ , ์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ œ๋Œ€๋กœ ์„ค์น˜ํ–ˆ๋Š”์ง€ ํ™•์ธํ•ด๋ด…๋‹ˆ๋‹ค. $ node -v ๊ทธ ํ›„, yarn์„ ์„ค์น˜ํ•ด์ค€๋‹ค. ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€ ์„ค์น˜๋งํฌ https://classic.yarnpkg.com/en/docs/install/#w..

article thumbnail
flutter ๋กœ๋”ฉ ๋„์šฐ๊ธฐ

๋ชจ๋ฐ”์ผ ๊ฐœ๋ฐœ์„ ํ•˜๋‹ค๋ณด๋ฉด, ์•„์ง ๊ฐ’์ด ๋ถˆ๋Ÿฌ์™€์ง€์ง€ ์•Š์•˜์„ ๊ฒฝ์šฐ, ๋˜๋Š” ์™„๋ฃŒ ์ƒํƒœ๊ฐ€ ์•„๋‹ ๊ฒฝ์šฐ์— ๋กœ๋”ฉ์ฐฝ์„ ๋„์›Œ์•ผ ๋  ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ์ด๋Ÿด ๋•์€ ๊ฐ„๋‹จํ•˜๊ฒŒ if ๋ฌธ์„ ์ž‘์„ฑํ•œ ํ›„, else ๋‹จ๊ณ„์—์„œ CircularProgressIndicator(); ๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ, ๋กœ๋”ฉ์ฐฝ์„ ๋„์šฐ๋ฉด ๋œ๋‹ค.

article thumbnail
Flutter DEBUG ๋ผ๋ฒจ ์ œ๊ฑฐ

Shfit ๋‘๋ฒˆ ๋ˆŒ๋Ÿฌ์„œ ๊ฒ€์ƒ‰์ฐฝ ์‹คํ–‰ ํ›„, debugShowCheckedModeBanner ๊ฒ€์ƒ‰ app.dart ํŒŒ์ผ์˜ const CupertinoApp, const MaterialApp ๋‘ ๊ณณ ๋ชจ๋‘ this.debugShowCheckedModeBanner ๋ฅผ false ๋กœ ์ˆ˜์ •