본문 바로가기

반응형

전체 글

(522)
Springboot - Sending Emails Let's see how we can send emails with the Springboot application. Dependencies org.springframework.boot spring-boot-starter-mail Properties Open the application.properties file and add the properties shown below. Set the host and port depending on the kind of hosts that you want to use. Then add the sender email address and password. For gmail we have to use an app password which provides a bett..
스프링부트 이메일 전송 스프링부트 어플리케이션에서 이메일 전송하는 방법에 대해 알아보자. 디펜던시 추가 org.springframework.boot spring-boot-starter-mail 프로퍼티 설정 application.properties 파일에 아래와 같이 속성값을 추가한다. 호스트와 포트는 사용하고자 하는 메일에 따라 설정한다. 다음으로 발신 메일주소와 비밀번호를 입력하는 데 지메일의 경우 제한된 권한을 허용하는 앱 비밀번호를 사용해야한다. spring.mail.host=smtp.gmail.com spring.mail.port=587 spring.mail.username= spring.mail.password= spring.mail.properties.mail.smtp.auth=true spring.mail.pro..
React - Style Libraries (Bootstrap) Let's see how we can add style libraries in the React application Bootstrap Run the command shown below to install the bootstrap npm i bootstrap Add the path in the index.js file import 'bootstrap/dist/css/bootstrap.css'; Done References Adding Bootstrap | Create React App (create-react-app.dev) Adding Bootstrap | Create React App While you don’t have to use any specific library to integrate Boo..
리액트 - 스타일 라이브러리(부트스트랩) 리액트 애플리케이션에 스타일라이브러리를 추가하는 방법을 살펴보자 부트스트랩 아래 커맨드를 통해 부트스트랩 설치 npm i bootstrap index.js 파일에 경로추가 import 'bootstrap/dist/css/bootstrap.css'; 이상 참고 Adding Bootstrap | Create React App (create-react-app.dev) Adding Bootstrap | Create React App While you don’t have to use any specific library to integrate Bootstrap with React apps, it's often easier than trying to wrap the Bootstrap jQuery plugins. R..
Polymorphism In Object Oriented Programming, it is possible to use one interface to implement different types and this feature is called polymorphism. Think of it as a form that can take various values. So polymorphism is just a functionality that allows different values with one class. Runtime Type VS Compile-time Type Typing As mentioned polymorphism enables us to use one class to implement different value..
폴리모피즘 객체지향 프로그래밍에서는 하나의 인터페이스를 통해 다양한 타입을 구현은 것이 가능한데 이를 폴리모피즘이라고 한다. 하나의 폼을 통해 다양한 값을 주입하는 것이 가능하듯이 하나의 클래스를 폼이라고 생각하면 해당 폼에 다양한 값을 넣을 수 있는 것이 폴리모피즘이라고 보면 된다. 런타임타입 VS 컴파일타입 타입핑 언급한 대로 폴리모피즘은 하나의 클래스를 통해 다양한 타입을 사용하게 하는 데 이는 런타임과 컴파일타입의 차이로 인해 가능하다. 주로 컴파일타입은 변수 정의의 좌측에 런타임타입은 변수 정의 우측에 온다. 지역변수 var (LVTI) 자바버전 10에서 추가된 기능으로 타입에 구애 없이 변수를 정의하게 해 준다. 지역변수타입 추측(LVTI) 아래와 같은 제한을 가진다. 1. 클래스의 필드로 사용불가 2...
Method Overriding VS Overloading What is the difference between overriding and overloading in Java? Simply put the difference between them is that method overloading means when methods with the same name but different parameters are usually under one class while the method overriding is when a child class manipulates a method from its parent without changing any parameters. Overloading VS Overriding Common Happens when we manip..
함수 오버로딩 VS 오버라이딩 자바에서 함수 오버로딩과 오버라이딩에 대해 알아보자 (비슷하게 생겨서 헷갈린다). 간단한 차이를 보면 함수 오버로딩은 주로 같은 클래스 내에 동일한 이름을 가진 함수가 다른 매개변수를 가질 때를 의미하고 함수 오버라이딩은 자식클래스가 부모로부터 상속받은 함수를 함수이름이나 매개변수 변경 없이 자식 클래스의 특성에 맞게 수정할 때 사용된다. 오버로딩 VS 오버라이딩 공통점 같은 이름을 가진 함수를 수정 차이점 오버로딩 오버라이딩 함수의 기능을 다른 매개변수로 다양화 부모 클래스 함수를 자식클래스에서 수정 상속관계에서도 사용가능 반드시 상속관계에서만 가능 매개변수가 다르다 (같으면 에러뜬다) 매개변수가 같아야 한다 리턴 타입 달라도 된다 리턴 타입이 같아야 한다 접근권이 달라도 된다 자식함수는 부모함수보다 ..

728x90