분류 전체보기 (172) 썸네일형 리스트형 [Leetcode 5/100] Roman to Integer - Easy https://leetcode.com/problems/roman-to-integer/submissions/ Roman to Integer - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 풀이 class Solution { public int romanToInt(String s) { int pre = RomanToInteger(s.charAt(s.length()-1)); int answer = pre; for(int i=s.length()-2; i>=0; i--.. [Leetcode 4/100] Palindrome Number - Easy https://leetcode.com/problems/palindrome-number/ Palindrome Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열로 푸는 방식 class Solution { public boolean isPalindrome(int x) { String str = String.valueOf(x); for(int i=0; i 쿠키와 세션 너무 잘 정리되어 있어서 공유합니다. 출처 : https://interconnection.tistory.com/74 쿠키와 세션 개념 쿠키와 세션은 개발자 말고도 인터넷 사용자라면 누구나 많이 들어본 단어입니다. 하지만 개념에 대해서는 많은 사람들이 헷갈려 하기에 쉽고 간단하게 정리해보려고 합니다. 일� interconnection.tistory.com Github Fork한 Repository 업데이트 하는 방법 어쩌다보니 포크해온 저장소를 업데이트 할 일이 생겼습니다. 추후에 다시 참고하려고 포스팅합니다~ 1. remote repository 확인 2. 중앙 원격저장소를 upstream이라는 이름으로 저장한다.(upstream이라는 이름대신 다른 이름으로 저장해도 됨) 3. upstream이라는 이름으로 잘 저장되었는지 확인 4. git fetch를 통해 최신 update의 내용을 불러온다. 5. git merge로 나의 로컬 저장소에 update! 6. 로컬저장소의 내용을 나의 원격저장소에 push로 마무리 출처 : https://andamiro25.tistory.com/193 [git]깃허브로 협업하기(Forking Workflow방식) Forking WorkFlow 방식의 협업 - 모든 프로젝트 참여자가 .. [토이 프로젝트] IT Article - 1 토이 프로젝트로 IT 기사를 크롤링하여 보여주는 웹 페이지를 만들어보기로 했습니다. 여러 사이트에서 IT 기사를 크롤링하여 보여주고 사용자가 스크랩? 즐겨찾기?를 하게 되면 추후에도 그 기사를 마이페이지에서 쉽게 볼 수 있게 만들려고 생각 중입니다. 현재 생각하는 구조는 아래 그림과 같습니다. 아래는 폴더 구조입니다. MVC 패턴으로 만들고 있고 현재는 login 부분까지 구현을 완료했습니다. 코드는 아래 주소에서 확인하실 수 있습니다. https://github.com/electricline/springboot-itarticle/tree/master/springboot-itarticle electricline/springboot-itarticle 스프링부트 토이프로젝트. Contribute to ele.. Spring WEB MVC와 HttpMessageConverters MVC 패턴이란 말은 스프링부트를 공부하다보면 자연스럽게 많이 들을 수 밖에 없는 이야기 같습니다. 저 역시 스프링부트를 처음 공부하면서 MVC 패턴을 접했고 이해하기 위해 많은 자료들을 참고했습니다. 그만큼 많은 사람들이 스프링 또는 부트에서 MVC 패턴을 활용한 서비스를 제작하고 있는거라 생각하면 되겠습니다. Spring WEB MVC 스프링부트 프레임워크에서는 이러한 MVC 패턴을 별도의 설정없이 바로 개발을 시작할 수 있도록 도와줍니다. 그 이유로는 AutoConfiguration을 통한 자동설정 지원에 있습니다. spring-boot-autoconfigure -> META-INF -> spring.factories spring.factories -> WebMvcAutoConfigutration .. SpringApplication이 제공해주는 여러 다양한 기능들 ( 백기선님 강의 참조) 1. Application Events and Listener SpringApplication은 몇몇 추가 어플리케이션 이벤트들을 제공합니다. SampleListener를 만들어서 이벤트가 발생하면 리스너가 실행되도록 해보겠습니다. SampleListener import org.springframework.boot.context.event.ApplicationStartingEvent; import org.springframework.context.ApplicationListener; public class SampleListener implements ApplicationListener { @Override public void onApplicationEvent(ApplicationStartingEven.. IntelliJ로 스프링 부트 프로젝트 생성 및 설정 ( Maven ) 스프링 부트를 위한 프로젝트 생성 방법입니다. 1. Maven으로 프로젝트를 생성 2. pom.xml에 기본적인 Setting 추가 메이븐에는 프로젝트 간의 계층 구조를 만들 수 있습니다. 태그를 통해 아래와 같은 계층 구조를 만들어 줍니다. -> 스프링 부트의 의존성 관리에 핵심적인 부분 웹 어플리케이션을 위한 디펜던시와 빌드 툴을 추가해주면 기본적인 셋팅이 완료됩니다. org.springframework.boot spring-boot-starter-parent 2.0.3.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-maven-plugin 3. 패키지와 클래스 생성 src > ma.. 이전 1 ··· 8 9 10 11 12 13 14 ··· 22 다음