본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

Spring Boot (13)
ModelMapper DTO-entity conversion

ModelMapper enables to convert DTO to an entity.DTO를 이용 id 값을 드러내지 않게한다.사용된 DTO를 entity(User class) 로 다시 변경하기위해 ModelMapper를 사용 You need to add ModelMapper bean at @SpringBootApplication. It let us use ModelMapper in different classes. ModelMapper @Bean을 @SpringBootApplication에 등록한다. @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication...

Spring Boot 2019. 3. 8. 04:14
Creating Spring Boot application with IntelliJ II

Users - This class takes the role of Model which dealing with Data UsersAPIController - Handle request of users and response UsersService - When the application starts, an instance which has @Service annotation is created. - By default, It is a Singleton pattern - Other Class, Service, Controller can be injected by using Dependency Injection. UsersRepository (DAO - Data Acess Object) - Control D..

Spring Boot 2019. 2. 27. 07:52
Creating Spring Boot application with IntelliJ

Creating Spring Boot application with IntelliJ 1. File - New - Project 2. Choose Spring Initializr 3. Choose Type as Gradle Project Maven/Gradle - it is a build automation system, dependency management tool. no need to download dependencies and add it to the classpath.- It creates a starter project. you don't need to create all the individual files yourself. semantic versioning- 0(major version)..

Spring Boot 2019. 2. 27. 05:02
@RestController

@Controller and @RestController 123@Controller@ResponseBodypublic class MyController{}cs@Controller 일때는 @ResponseBody 까지 명시해줘야 하지만 12@RestControllerpublic class MyRestController{}cs@RestController 는 @ ResponseBody가 이미 자동적으로 적용이 되기 때문에 따로 적어주지 않아도 사용할 수 있다. @ResponseBody- Java객체를 http응답객체로 전송할 수 있다. - Serialization(converting Object to JSON) @RequestBody- 요청이 온 data(JSON or XML) 를 바로 class 나 mode..

Spring Boot 2019. 2. 10. 08:07
Dependency Injection

DI Dependency Injection 의존성 주입 - IoC (Inversion of Control) and DI are used to be interchangeable. - A programmer is central to the program, but the control of the entire program is the framework. - Inject bean by assembler not Object itself - Spring Container create Bean and control the life cycle of it. Example Code I public class Person{ private Writer text; public Person() { text = new Anoth..

Spring Boot 2019. 1. 30. 14:21
Spring Boot annotation

@SpringBootConfiguration - @Configuration과 같음. Bean을 등록하는 Java 설정파일(@Component, @Service, @Repository, @Controller, @Configuration annotation 이 붙은 method 를 @Autowired로 bean을 생성할 수 있다.)이며 @Configuration 자신도 bean으로 등록된다. @ComponentScan - The first stage to read Bean. - @Component,@Configuration,@Repository,@Service,@Controller,@RestController 를 가진 Class 들을 scan해서 bean으로 등록한다. - 다 같은 이름으로 하지 않고 저렇게..

Spring Boot 2019. 1. 26. 08:45
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Object type casting
  • 알고리즘
  • 프로그래머스 알고리즘
  • substring()
  • math.abs
  • javascript
  • repeat()
  • code refactoring
  • spring boot application
  • string class in java
  • rest parameter
  • java
  • easy javascript algorithm
  • compareTo()
  • ... in Javascript
  • hackerrank javascript
  • Collection Framework
  • algorithm
  • hackerrank solution
  • C++
  • 프로그래머스 알고리즘문제
  • equals()
  • HackerRank Algorithm
  • hackerrank javascript solution
  • HashMap
  • hackerrank
  • 프로그래머스
  • math.max
  • Javascript Algorithm
  • easy algorithm
more
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바