문과코딩(5)
-
chat, deploy
chat npm install nodemon -g nodemon app_3.js html js 다 자동인식잘됨 //설치된 express 불러오기 console.log("==========="); const express = require("express"); //설치한 socket.io 모듈 불러오기 const socket = require("socket.io"); //node.js 기본 내장 모듈 불러오기 const http = require("http"); //Node.js 기본내장 모듈 불러오기 const fs = require("fs"); ////file system //express 객체 생성 const app =express(); //express http 서버생성 const server = ..
2024.03.28 -
updateDone, app, chatting
updateDone module.exports = { HTML: function (title, body, control) { return ` ${title} ${body} ${control} `; }, table: function (topics) { var list = ""; var i = 0; while (i < topics.length) { list = list + ` ${topics[i][0]} ${topics[i][1]} ${topics[i][2]} 삭제 수정 `; i = i + 1; } list = list + ""; return list; }, Form: function (topics, url, metaData) { var form = ` `; var i = 0; console.log(topi..
2024.03.28 -
Routing_loader
라우팅 메뉴링크활성화피드백_NaviLink이용 import React from 'react'; import { NavLink } from 'react-router-dom'; import classes from './MainNavigation.module.css' import { Link } from 'react-router-dom'; function MainNavigation(props) { return ( { return isActive ? classes.menu : undefined; }}> Home { return isActive ? classes.a : undefined; }}> products ); } export default MainNavigation; css a{ text-decoratio..
2024.03.24 -
spring - property
property 이순신 echoBean public class EchoBean { String aaa; public String sayEcho() { return "hello"; } public EchoBean() { System.out.println("반드시 필요ㅘㄴ !!! 기본생ㅇ성자 호출"); } public String getAaa() { return aaa; } public void setMesg(String mesg) { System.out.println("setMesg(String mesg)호출"); this.aaa = mesg; } } main GenericXmlApplicationContext ctx = new GenericXmlApplicationContext("classpath:com..
2024.02.06 -
스프링 준비
sts 기본 설정 general - workspace - 한글설정 css/jsp/html 한글설정 jre jdk11 기본 브라우저 chrome 스프링 import 후 ⇒ pom파일을 읽고 다운로드 pom파일 maven update : alt+ f5 build path 확인 classpath 확인 하기!!!!!!!!!!!!!! xml bean 에 id 찾기 ❗❗ no search bean 이면 id 가 틀린 것❗❗ 똑같은 아이디 두 개 를 bean 에 넣지 말 것 ❗❗ xml에 id 부여하기 Person.java package com.spring; public class Person { String name ="홍길동"; public Person() { super(); System.out.println("..
2024.02.05