[intelliJ] 셋팅: 인레이 힌트 inlay
컴파일 전에 미리 타입을 보여준다
- 카테고리 없음
- · 2025. 4. 3.
1. spring boot에서 profile을 끌어가는 방법 : spring coreapplication.yaml에 등록된 profile 정보가 있다. spring은 여기서 local, dev, staging 등의 정보를 끌어간다. (어떻게?까지는 아직 내 레벨에선 이해하기 어려운 듯... ㅠ)// application.yaml 파일---spring: config: activate: on-profile: local import: ~/configLocal.yml ...spring.profiles.active = local그리고 config.xml파일을 import하고 있는 걸 알 수 있음.1-1. Profile이란?Profile은 Bean의 그룹을 말한다. Spring은 다양한 profile을 지정할..
컴파일 전에 미리 타입을 보여준다
8자YYYY MM DD 14자YYYY MM DD HH MM SS1990 01 01 12 34 26 20자 (마이크로 초 6자가 추가)YYYYMM DD HH MM SS mmmuuu 나노초 (Nanoseconds): 1초를 10억(1,000,000,000) 나노초로 표현 마이크로초 (Microseconds): 1초를 백만(1,000,000) 마이크로초로 표현 밀리초 (Milliseconds): 1초를 천(1,000) 밀리초로 표현 초 (Seconds): 일반적으로 시간의 기본 단위로 사용 https://0soo.tistory.com/240
1. File -> Project Structure2. Modules -> 프로젝트 -> Dependecies -> + 클릭 -> JARS or directories3. 추가할 라이브러리 선택 -> OK 클릭 https://goddaehee.tistory.com/243
1. @ModelAttribute- 요청 파라미터를 특정 객체에 바인딩 할 때 사용된다.- 주로 DTO나 데이터 클래스를 받아서 요청 데이터를 객체로 변환하는데 사용한다.DTO를 매개변수로 받는 예시 ▼//--------------------Controller----------------------------@GetMapping("/user")fun getUser(@ModelAttribute request: UserRequest): String { return "Hello, ${request.name}"}//----------------------------------------------------------//-------------------DTO class-----------------------..
ThrowableThe base class for all errors and exceptions. Only instances of this class can be thrown or caught.매개변수- message : the detail message string.- cause : the cause of this throwable. ExceptionThe class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch. The class Exception and any subclasses that are not also sub..