![[intelliJ] kotlin이 구성되지 않았습니다.](http://i1.daumcdn.net/thumb/C120x120/?fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FBPlzK%2FbtsNhQJD9xW%2FAAAAAAAAAAAAAAAAAAAAAOQ052DIh7PSZdtTEbsKDnw3-aSaX88VAkYNvX8cGSqF%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1761922799%26allow_ip%3D%26allow_referer%3D%26signature%3DLIVyMajEj32i%252BKH2FgSxU6CU9Iw%253D)
[intelliJ] kotlin이 구성되지 않았습니다.
빌드를 intelliJ가 하도록 한다
- 【 개발 이야기 】
- · 2025. 4. 11.
@RestController@RequestMapping("/persons")class PersonController { @GetMapping("/{id}") fun getPerson(@PathVariable id: Long): Person { // ... } @PostMapping @ResponseStatus(HttpStatus.CREATED) fun add(@RequestBody person: Person) { // ... }} You can use the @RequestMapping annotation to map requests to controllers methods. It has various attributes to match by URL, HTTP method, request parame..
공식문서 : https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-interface-method-parameters HTTP exchange 메서드는 아래와 같은 method signature을 지원한다.@PathVariableAdd a variable for expand a placeholder in the request URL. The argument may be a Map with multiple variables, or an individual value. Type conversion is supported for non-String values.요청 URL에 변수를 추가합니다. 인수는 여러..
build.gradle에 kotlin이 밑줄 그어지고Kotlin이 구성되지 않았음 이라는 경고가 뜨고빌드 시 kotlin.stdlib cannot be found in the module graph 라는 에러가 나온다면 kotlin이 다운로드 되지 않은 것이므로 build.gradle에 의존성을 추가해준다.dependencies { // https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib implementation("org.jetbrains.kotlin:kotlin-stdlib:2.1.20")} https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib/..
context란코루틴이 실행되는 일련의 설정과 환경이라고 생각해보자. context는 코루틴에게 이렇게 말한다."이 코루틴이 실행되면 이렇게 동작하면 돼. 예를 들면 어떤 스레드를 쓸건지, 어떤 job에 속할 건지, 에러 때는 어떻게 할건지..." context 구성요소Dispatcher어떤 스레드나 스레드 풀을 사용할지 조정한다 (Dispatchers.IO, Main)Job코루틴의 라이프 사이클(생명 주기)CorountineName로그를 위한 디버그 명ExceptionHandleruncaught 에러를 처리하는 방법 (CorountineExceptionHandler)기본 예제val context = Dispatchers.IO + CorountineName("fetch-user")launch(conte..
https://incheol-jung.gitbook.io/docs/study/undefined-4/1코루틴을 이해하기 위한 선행 조건코루틴을 이해하기 위해서는 프로세스와 스레드 그리고 비동기를 이해해야만 한다. 애플리케이션을 시작할 때 운영체제는 프로세스를 생성하고여기에 스레드를 연결한 다음,메인 스레드(main thread)를 시작한다. 프로세스?프로세스는 실행 중인 애플리케이션의 인스턴스다. 애플리케이션은 여러 프로세스로 구성될 수 있다.스레드?실행 스레드는 프로세스가 실행할 일련의 명령을 포함한다.스레드가 끝나면 프로세스의 다른 스레드와 상관없이 프로세스가 종료된다.fun main(args: Array) { doWork()} 애플리케이션이 실행되면 main() 함수의 명령 집합이 포함된 메인 스레..
빌드를 intelliJ가 하도록 한다