JPA 사용시 테스트 환경이 아닌, 일반 환경에서 update 쿼리문이 보이지 않는 이유가 궁금합니다. 제가 생각하는 update 쿼리문이 적용되는 과정은 transaction이 커밋이 되고, 더티 체킹을 통해서 기존 스냅샷과 비교해 달라진 값을 기준으로 쿼리문을 작성하고 flush()를 통해서 쿼리문을 DB에 날린다음에 flush()한 쿼리문에 대한 commit()을 통해 db에 최종적으로 저장되는 과정으로 이해하고 있는데, 결국 DB에 쿼리를 날리기때문에 로그를 확인했을때, 확인할 수 있어야 하는거 아닌지에 대해 궁금합니다. insert와 select 쿼리문은 로그가 올바르게 찍히는데 그에 반해 update 쿼리는 로그가 보이지 않습니다.
안녕하세요. 도메인등록과 HTTPS설정을 끝까지 따라했는데 certbot --nginx 이후 접속해봤을 때 아래 [그림 1]과 같이 나타나고 접속이 불가능합니다. [그림 2]와 같이 nginx.conf에는 certbot 관련 설정이 추가는 된 것 같습니다. 다만, 따라하는 과정 중 제게는 [그림 3] 같은 선택지 질문이 있엇습니다. 어떻게 조치를 하면 좋을까요..? [그림 1] [그림 2] [그림 3]
[질문 내용] 설정에서 Gradle로 변경 시 실행했을 때 나오는 도큐먼트 ============================ CONDITIONS EVALUATION REPORT ============================ Positive matches: ----------------- AopAutoConfiguration matched: - @ConditionalOnProperty ( spring.aop.auto =true) matched (OnPropertyCondition) AopAutoConfiguration.ClassProxyingConfiguration matched: - @ConditionalOnMissingClass did not find unwanted class 'org.aspectj.weaver.Advice' (OnClassCondition) - @ConditionalOnProperty (spring.aop.proxy-target-class=true) matched (OnPropertyCondition) ApplicationAvailabilityAutoConfiguration#applicationAvailability matched: - @ConditionalOnMissingBean (types: org.springframework.boot.availability.ApplicationAvailability; SearchStrategy: all) did not find any beans (OnBeanCondition) GenericCacheConfiguration matched: - Cache org.springframework.boot.autoconfigure.cache.GenericCacheConfiguration automatic cache type (CacheCondition) LifecycleAutoConfiguration#defaultLifecycleProcessor matched: - @ConditionalOnMissingBean (names: lifecycleProcessor; SearchStrategy: current) did not find any beans (OnBeanCondition) NoOpCacheConfiguration matched: - Cache org.springframework.boot.autoconfigure.cache.NoOpCacheConfiguration automatic cache type (CacheCondition) PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer matched: - @ConditionalOnMissingBean (types: org.springframework.context.support .PropertySourcesPlaceholderConfigurer; SearchStrategy: current) did not find any beans (OnBeanCondition) SimpleCacheConfiguration matched: - Cache org.springframework.boot.autoconfigure.cache.SimpleCacheConfiguration automatic cache type (CacheCondition) SqlInitializationAutoConfiguration matched: - @ConditionalOnProperty (spring.sql.init.enabled) matched (OnPropertyCondition) - NoneNestedConditions 0 matched 1 did not; NestedCondition on SqlInitializationAutoConfiguration.SqlInitializationModeCondition.ModeIsNever @ConditionalOnProperty (spring.sql.init.mode=never) did not find property 'mode' (SqlInitializationAutoConfiguration.SqlInitializationModeCondition) SslAutoConfiguration#sslBundleRegistry matched: - @ConditionalOnMissingBean (types: org.springframework.boot.ssl.SslBundleRegistry,org.springframework.boot.ssl.SslBundles; SearchStrategy: all) did not find any beans (OnBeanCondition) TaskExecutionAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor' (OnClassCondition) TaskExecutorConfigurations.SimpleAsyncTaskExecutorBuilderConfiguration#simpleAsyncTaskExecutorBuilder matched: - @ConditionalOnMissingBean (types: org.springframework.boot.task.SimpleAsyncTaskExecutorBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) - @ConditionalOnThreading found PLATFORM (OnThreadingCondition) TaskExecutorConfigurations.TaskExecutorConfiguration matched: - @ConditionalOnMissingBean (types: java.util.concurrent.Executor; SearchStrategy: all) did not find any beans (OnBeanCondition) TaskExecutorConfigurations.TaskExecutorConfiguration#applicationTaskExecutor matched: - @ConditionalOnThreading found PLATFORM (OnThreadingCondition) TaskExecutorConfigurations.ThreadPoolTaskExecutorBuilderConfiguration#threadPoolTaskExecutorBuilder matched: - @ConditionalOnMissingBean (types: org.springframework.boot.task.ThreadPoolTaskExecutorBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) TaskSchedulingAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler' (OnClassCondition) TaskSchedulingConfigurations.SimpleAsyncTaskSchedulerBuilderConfiguration#simpleAsyncTaskSchedulerBuilder matched: - @ConditionalOnMissingBean (types: org.springframework.boot.task.SimpleAsyncTaskSchedulerBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) - @ConditionalOnThreading found PLATFORM (OnThreadingCondition) TaskSchedulingConfigurations.ThreadPoolTaskSchedulerBuilderConfiguration#threadPoolTaskSchedulerBuilder matched: - @ConditionalOnMissingBean (types: org.springframework.boot.task.ThreadPoolTaskSchedulerBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) Negative matches: ----------------- ActiveMQAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'jakarta.jms.ConnectionFactory' (OnClassCondition) AopAutoConfiguration.AspectJAutoProxyingConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.aspectj.weaver.Advice' (OnClassCondition) ArtemisAutoConfiguration: .... Exclusions: ----------- None Unconditional classes: ---------------------- org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration org.springframework.boot.autoconfigure.ssl.SslAutoConfiguration org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration org.springframework.boot.autoconfigure.availability.ApplicationAvailabilityAutoConfiguration org.springframework.boot.autoconfigure.info .ProjectInfoAutoConfiguration 설정에서 Intellij IDEA로 변경 시 나오는 도큐먼트 java.lang.IllegalStateException: Failed to load ApplicationContext for [MergedContextConfiguration@68ab0936 testClass = hello.core.CoreApplicationTests, locations = [], classes = [hello.core.CoreApplication], contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"], contextCustomizers = [org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@602c4656, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties .PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@a8a8b75, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@155d1021, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@deb3b60, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@54acff7d, org.springframework.test.context.support .DynamicPropertiesContextCustomizer@0, org.springframework.boot.test.context.SpringBootTestAnnotation@b2fce02d], contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null] 우선 초반부터 설정부분에서 Intellij IDEA로 지정하면서 강의를 진행하였습니다. 그러나 중간쯤 테스트 하위클래스에 CoreApplicationTest contextLoads()가 계속 오류가 나길래 인프런에 질문 목록들을 참고하면서 알아본 결과 스프링 부트 3.X 이상부터는 호환성 문제로 설정에서 Gradle에 들어가서 Intellij IDEA에서 Gradle로 바꾸면 테스트를 모두 실행했을 때 오류가 뜨진 않게 되는데요. 그래도 콘솔에서는 아주아주 긴 설명문이 나옵니다. 물론 실행 속도도 현저히 느리게 되었구요. 결론은 꼭 Gradle로 바꾸는 방법 말고 Intellij IDEA로 계속 하면서 다른 해결방법이 없나 궁금합니다.
[질문 내용] JpaRepository 코드를 타고 들어가보니, 코드는 다음과 같았습니다. @NoRepositoryBean public interface JpaRepository<T, ID> extends PagingAndSortingRepository<T, ID>, QueryByExampleExecutor<T> { 분명 JpaRepository는 interface로 선언이 되어있는데, JpaRepository를 상속받은 제가 커스텀한 Repository는 구현을 따로 하지 않고 JpaRepository 인터페이스에 정의된 메서드들을 사용할 수 있는 건가요? 추상 클래스면 이해를 하겠지만 인터페이스에서 어떻게 사용이 가능한지 이해가 잘 되지 않습니다.
강의 7:47 esModuleInterop 옵션을 true로 설정하게 되면 default export가 없는 client.d.ts에서 아래와 같은 형태로 값을 불러올 수 있다고 하셨는데 그렇다면 ReactDOM은 client.d.ts에서 어떤 값이 되는건가요? import ReactDOM from "react-dom/client";
선생님, 안녕하세요. 강의 잘 듣고 있습니다! 다름이 아니라 3번 문제에서 trainer를 LEFT에 두시고 계산하셨는데, 저는 trainer_pokemon을 LEFT에 두고 계산했더니 오류가 뜹니다. SELECT COUNT(DISTINCT tp.trainer_id) AS trainer_cnt FROM basic.trainer_pokemon AS tp LEFT JOIN basic.trainer AS t ON tp.location = t.hometown WHERE tp.location = t.hometown 그렇다고, COUNT에 DISTINCT를 없애니 결과값이 3003개로 나옵니다.
안녕하세요. 과제전형을 준비중인데 강의듣고 많은걸 깨우쳤습니다. 잘 배우고 있는 중입니다. 그런데 올려주신 코드(TestController.java)를 실행했을 때 로컬 주소로 NotFound가 나더라구요. 코틀린코드로 변경하면서 공부중인데 제 코드가 문제라 생각하다가 원본 코드를 한번 돌려봤는데 같은 현상이 일어나서 혹시 더 설정해 줘야 할게 있을지 여쭤봅니다. restClient를 의심했다가 public api 가 동작하는 것을 보고 역시 라이브러리 문제는 아닌거 같더라구여.
https://www.inflearn.com/community/questions/1431457/windows-11-%EA%B0%80%EC%83%81%EB%A8%B8%EC%8B%A0-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EC%9D%B4%EC%8A%88-2 위 링크를 참고해서 VMware 가상머신을 다운받고 zip 폴더를 여는데 손상된 파일이라고 뜹니다. 확인을 누르니까 압축해제는 동작하길래 압축해제를 눌러봤는데 압축해제를 하는 도중에 아래와 같이 뜹니다. 강사님과 동일한 환경에서 학습하고 싶은데 어떻게 해야하나요 ??
https://www.inflearn.com/community/questions/1431457/windows-11-%EA%B0%80%EC%83%81%EB%A8%B8%EC%8B%A0-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EC%9D%B4%EC%8A%88-2 위 링크를 참고해서 VMware 가상머신을 다운받고 zip 폴더를 여는데 손상된 파일이라고 뜹니다. 확인을 누르니까 압축해제는 동작하길래 압축해제를 눌러봤는데 압축해제를 하는 도중에 아래와 같이 뜹니다. 강사님과 동일한 환경에서 학습하고 싶은데 어떻게 해야하나요 ??
좋은 강의 잘 듣고 있습니다 ㅎ SPI(shallow packet inspection)에 대한 설명으로 HTTP header를 확인해서 특정 사이트 접속을 차단한다고 하셨는데 TLS가 적용되면 http packet이 암호화 될텐데 header를 어떻게 읽을 수 있는지 궁금합니다. 감사합니다
Need to install the following packages: create-react-app@5.0.1 Ok to proceed? (y) npm error code EACCES npm error syscall mkdir npm error path /Users/hello/.npm/_cacache/index-v5/e6/e7 npm error errno EACCES npm error npm error Your cache folder contains root-owned files, due to a bug in npm error previous versions of npm which has since been addressed. npm error npm error To permanently fix this problem, please run: npm error sudo chown -R 501:20 "/Users/hello/.npm" npm error A complete log of this run can be found in: /Users/hello/.npm/_logs/2024-12-10T01_00_27_100Z-debug-0.log 위와 같은 오류가 발생하시는 분들은 아래 방법으로 해결할 수 있습니다. npm 캐시 권한 문제 해결 방법 npm 캐시 폴더의 소유권 수정 후 실행하기 sudo chown -R $(whoami) ~/.npm npm install -g create-react-app npx create-react-app . or 캐시를 완전히 정리 후 실행하기 npm cache clean --force npm install -g create-react-app npx create-react-app .
[질문 템플릿] 1. 강의 내용과 관련된 질문인가요? (예/아니오) 2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오) 3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오) [질문 내용] 안녕하세요 좋은 강의 열심히 강의 수강중에 질문있어 남깁니다. HTTP 요청데이터는 세가지 방식으로 데이터를 전달 할 수 있다고 배웠습니다. 해당 강의에서는 HTML Form방식으로 상품 게시판을 진행한것 같은데, HTTP messagebody방식으로 게시판을 만들어 볼 수 있을까요? 있다면 관련 강의가 있는지 궁금합니다. 없다면 HTTP messagebody방식은 어떻게 공부해야하는지 간단하게라도 알려주시면 감사하겠습니다. 어리석은 질문일 수도 있겠지만 답변 부탁드리겠습니다!
안녕하세요. 세션관련해서 궁금한 점이 있습니다. ClientServiceRef service를 생성해서 connect를 하는데요, 이 service로 Start하는 과정이 궁금합니다. Start 함수 내부에서 sessionCount만큼 Connect를 하는데 클라이언트는 서버에 한 번만 Connect를 하면 될 텐데 maxSessionCount만큼 연결 시도하는 것은 무슨 이유인가요? 그리고 service를 생성한 후 Broadcast를 하는데 연결된 서버는 하나인데, 맥스 세션 수만큼 Broadcast를 하는 것도 이해가 안 가네요. 만약 Broadcast가 아니고 그냥 Send 함수를 구현한다면 맥스세션 수 내의 세션 중에서 어떤 세션에 Send를 호출해야 할까요? 답변 부탁드립니다.