굉장히 개인적인 저장소

굉장히 개인적인 저장소

  • 분류 전체보기 (18)
    • 문제해결 (1)
    • Program (1)
      • Java (1)
      • JavaScript (0)
      • Thymeleaf (0)
    • OS (1)
      • Linux (1)
    • 알고리즘 (15)
      • LeetCode (15)
    • 커리어 (0)
    • 토이 프로젝트 (0)
      • Project A (0)
    로그인
    로그아웃 글쓰기 관리

    굉장히 개인적인 저장소

    컨텐츠 검색

    태그

    AJAX #프로그래밍 첫걸음 시작하기 패스트캠퍼스 K-디지털크레딧 LeetCode 프로그래밍 기초 JavaScript 바이트디그리 내일배움카드 Proxy Cors java Linux

    최근글

    댓글

    공지사항

    아카이브

    전체 글(18)

    • [LeetCode] 3. Longest Substring Without Repeating Characters (Java)

      Description Given a string s, find the length of the longest substring without repeating characters. 반복되는 문자가 없는 가장 긴 문자열의 길이를 구하라. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", with the length of 1. Example 3: Input: s = "pwwkew" Output: 3 Explanation: The answer is "wke"..

      2022.12.28
    • [LeetCode] 2. Add Two Numbers (Java)

      Description You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. 음수가 아닌 한 자리 정수로 구성된 리스트가 두 개 주어진다. 리스트가 나타내는 는 거꾸로 들어있다. 두 수를 더해라. ..

      2022.12.28
    • [LeetCode] 1. Two Sum (Java)

      Description Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. --- 정수의 array와 정수로 된 목표 숫자가 주어지고 목표 숫자로 더해지는 두 숫자를 반환해라. 같은 요소를 두 번 사용하면 안된다. Example 1. Input: nums = [2,7,11,15], ..

      2022.12.22
    • [리눅스] 프록시 서버 구축하기

      CentOS에서 오픈 소스인 squid를 사용하여 간단하게 프록시 서버를 구축만 해보기. 1. squid 설치 sudo yum install squid systemctl start squid systemctl enable squid 설치가 완료되면 squid를 실행시키고 부팅 시 자동실행할 수 있도록 활성화한다. systemctl status squid 실행이 되었으면 아래처럼 상태가 표시된다 squid.service - Squid caching proxy Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2022-12-06 10:5..

      2022.12.13
    • [Java] 컨트롤러에서 open api 호출하기

      CORS 에러를 해결하기 위해 JSP문서에서 open api를 호출하는 대신, 컨트롤러에서 공공기관의 open api를 대신 호출시키고 데이터를 받아오는 방법을 사용했다 corsCatch.java @RequestMapping(value = "/test", method = { RequestMethod.POST },produces = "application/text; charset=utf8") public String test1(@RequestParam("url") String preurl) throws IOException { String preurl = preurl.replaceAll("&", "&"); //&amp로 넘어온 &를 치환 String result = null; URL url = null; ..

      2022.12.12
    • [문제해결] CORS 정책 에러 해결

      1. 문제 상황 워크넷에서 open api를 호출하는 과정에서 cors 에러가 발생하였다. origin이 다르기 때문에 해당 요청은 cors정책으로 거부되었고 Access-Control-Allow-Origin 헤더가 요청된 리소스에서 존재하지 않는다고 출력된다. 2. 원인 웹 사이트에서 http 요청을 할 때 두 개 이상의 사이트에서 리소스를 호출하면 same-origin 정책과 cross-origin 정책을 위반한 것이 되어 요청을 거부하기 때문이다. 예를 들어 내가 만든 페이지는 내 톰캣 서버인http://localhost:8080에서 리소스를 가져오고 있는데 open api를 호출하면서 http://data.co.kr 에서도 리소스를 가져오려고하면 거부당한다는 것이다. * 별개로 https가 ori..

      2022.12.10
    이전
    1 2 3
    다음
    © 2018 TISTORY. All rights reserved.

    티스토리툴바