공지사항
인기 글
-
Flutter 환경설정 1
1. Flutter SDK 다운로드 https://docs.flutter.dev/get-started/install/windows Windows install How to install on Windows. docs.flutter.dev 2. 원하는 위치에 압축을 풀어 주기 ex) C:\flutter 아시는 부분이겠지만 경로상에는 한글이 존재해서는 안됩니다. 이유는 한글 인식 못함 3. 환경 변수 지정 저의 컴퓨터 기준으로 C:\flutter\bin을 변수로 등록합니다. 3. Flutter doctor 실행 플렛폼 종속성이 있는지 확인합니다. cmd를 실행하여 실행하여 여러가지 Flutter에 대한 설치 보고서가 출력됩니다. C:\src\flutter>flutter doctor 이 경우에는 안드로이드 스..
-
[전자정부프레임워크] paginationtag 페이징 처리
Controller.java @RequestMapping(value={"index.do", "list.do"}) public String LectureList(HttpServletRequest request, Model model , @RequestParam(value="srchType", required=false) String srchType , @RequestParam(value="srchWord", required=false) String srchWord) throws Exception { // 전자정부프레임워크 페이징 연습 int currentPageNo = request.getParameter("curPage")==null? 1:Integer.parseInt(request.getParamete..
-
우분투 자바 셋팅을 위한 사이트
1. 기본베이스로 찾아본 셋팅 사이트 ( https://goyunji.tistory.com/91 ) 2. JAVA_HOME 셋팅을 위해 다시 찾아본 페이지 ( https://m.blog.naver.com/dktmrorl/222034123157 ) 3. IP방화벽(AWS), apache2, tomcat 연동 때문에 본 사이트 ( https://goyunji.tistory.com/93 ) 4. Virtualbox로 구축된 서버를 확인하기 위한 사이트 ( https://noota.tistory.com/53 ) 5. Ubuntu mariaDB 설치 및 초기 설정 ( https://m.blog.naver.com/6116949/221992559683 )
-
[JavaScript] Ajax 옛날방식과 요즘방식
1. 옛날방식 * XMLHttpRequest 2. 요즘JS방식 fetch('https://www.naver.com/*.json') .then((response) => { if(!response.ok) { throw new Error('400 or 500'); } return response.json(); }) .then((결과) => { console.log(결과); }) .catch(() => { console.log('에러'); }) * fetch 위와 같이 then함수 붙는 건 지져분해서 싫다고 할때는 아래와 같이 async function getDataFun() { var response = await fetch('https://www.naver.com'); if(!response.ok) { th..
최신 글
-
throw new Error`의 역할과 동작 방식 정리카테고리 없음 2025.04.17 17:39
throw new Error의 역할과 동작 방식 정리1. throw new Error란?throw new Error('메시지')는 자바스크립트에서 명시적으로 예외(오류)를 발생시키는 명령입니다.Error 객체를 생성해 오류 메시지와 함께 현재 실행 흐름을 즉시 중단하고, 가장 가까운 catch 블록으로 제어를 넘깁니다.2. 코드 내 throw new Error 사용 예시retrieveYearDataBind: (vuePage) => { return new Promise((resolve, reject) => { window.$handler(async () => { try { // 임의로 오류 발생 th..
-
Node.js의 주요 용도카테고리 없음 2025.04.17 16:51
Node.js의 주요 용도Node.js는 브라우저가 아닌 서버 환경에서 JavaScript를 실행할 수 있도록 해주는 오픈소스 런타임 환경입니다. 다음과 같은 다양한 용도로 널리 활용되고 있습니다.1. 웹 서버 및 웹 애플리케이션 개발Node.js는 HTTP 서버를 직접 구현하거나, Express.js와 같은 프레임워크와 함께 빠르고 효율적인 웹 서버 및 웹 애플리케이션을 개발하는 데 주로 사용됩니다RESTful API 서버, 정적/동적 웹사이트, 대용량 트래픽을 처리하는 웹 서비스 구축에 적합합니다2. 실시간 애플리케이션비동기 I/O와 이벤트 기반 아키텍처 덕분에 실시간 채팅, 게임 서버, 협업 툴, 알림 시스템 등 실시간 데이터 처리가 필요한 애플리케이션에 많이 쓰입니다WebSocket, Socket..
-
-
Java 16 패턴 변수카테고리 없음 2024.01.05 13:20
- 패턴 변수의 예시 if (obj instanceof String) { String str = (String) obj; System.out.println(str); } // 아래와 같이 변경 가능 if (obj instanceof String str) { System.out.println(str); } - 실제 프로젝트에서 쓰인 코드 if (authentication != null && authentication.getPrincipal() instanceof User) { User currentUser = (User) authentication.getPrincipal(); request.setAttribute("currentUser", currentUser); } // 아래와 같이 변경 if (auth..