프로그래밍/spring2 spring dao 와 dto 의 차이 항상 헷갈렸던 거 같다. 데이터를 자바의 오브젝트로 매핑하는 것이기 때문에 둘 다 똑같은게 아닌가? 라고 생각해서 dao 패키지로 모두 묶어서 개발한 적도 있었다. 하지만 dao 와 dto 는 다른 개념으로 사용하는 것이었다. 간단하게 말하면 dao(model) 는 persist layer(DB) 에서 사용되는 데이터 객체 dto 는 reqeust나 response 등의 데이터 전송으로 사용되는 객체 라고 말할 수 있다. 2021. 1. 7. Spring Boot maven profile 적용 Create two profiles in maven, and set a property in each profile with the name of the Spring profile you want to execute. dev true dev develop Inside your application.properties, add this property:spring.profiles.active=${spring.profiles.active}Create an application.property for each profile, using this pattern application-profile.properties. For example:application-dev.properties application-pr.. 2015. 11. 25. 이전 1 다음