묻고 답해요
158만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨스프링 시큐리티 완전 정복 [6.x 개정판]
Kotlin DSL 활용
import org.springframework.security.config.annotation.web.invoke시큐리티 5.3부터 Kotlin 환경에서 스프링 시큐리티를 사용하실 때 DSL을 지원받을 수 있습니다.공식문서에 나와있습니다.(https://docs.spring.io/spring-security/reference/servlet/configuration/kotlin.html)이 DSL을 사용한 예제 프로젝트도 제공됩니다. (https://github.com/spring-projects/spring-security-samples/tree/main/servlet/spring-boot/kotlin/hello-security) DSL 문 삽입은 IDE의 지원을 받을 수 없어서 위 import 문을 직접 작성해야합니다. @Configuration class SecurityConfig { @Bean fun securityFilterChain(http: HttpSecurity): SecurityFilterChain { http { authorizeHttpRequests { authorize("/", permitAll) authorize(anyRequest, authenticated) } formLogin {} rememberMe { } sessionManagement { sessionCreationPolicy = SessionCreationPolicy.STATELESS } } return http.build() } } 예를 들면 위와 같이 DSL의 지원을 받아 설정을 구성할 수 있습니다.람다 표현식을 작성하지 않고 설정할 수 있습니다.IDE를 통해 DSL 설정 클래스를 쭉 따라가보면 어떤 파라미터를 전달하면 될지 확인할 수 있는데 이를 참고하면 좀 더 편리하게 설정을 사용할 수 있습니다.다만 일부 설정은 제공되지 않는 것도 있어서 해당하는 부분은 Spring에서 제공되는 API 그대로 사용하셔야합니다.
-
미해결
환불문의
안녕하세요. 지난 3월 27일에 결재한 강의를 환불신청드립니다. 아직 1주일이 되지 않았고, 강의를 전혀 보지 않은 상태인데, 환불 버튼이 활성화되어 있지 않아서, 문의 게시판에 내용 남깁니다. 제목: ORM 표준 JPA 프로그래밍 - 기본편주문번호: 2639871
-
미해결이득우의 언리얼 프로그래밍 Part2 - 언리얼 게임 프레임웍의 이해
Collision 관련 감지 문제에 대한 질문입니다
void AABCharacterBase::NotifyHitCheck() { //const float AttackRange = CharacterStatComponent->GetTotalStat().AttackRange; const float AttackRange = 1000.f; const float AttackRadius = 50.f; const float AttackDamage = CharacterStatComponent->GetTotalStat().AttackDamage; const FVector Start = GetActorLocation() + GetActorForwardVector() * GetCapsuleComponent()->GetScaledCapsuleRadius(); const FVector End = Start + GetActorForwardVector() * AttackRange; FCollisionQueryParams Params(SCENE_QUERY_STAT(Attack), true, this); TArray<FHitResult> HitResults; bool bHitResult = GetWorld()->SweepMultiByChannel(HitResults, Start, End, FQuat::Identity, ECollisionChannel::ECC_GameTraceChannel1, FCollisionShape::MakeCapsule(AttackRadius, AttackRange * 0.5f), Params); //bool bHitResult = GetWorld()->SweepMultiByObjectType(HitResults, Start, End, FQuat::Identity, FCollisionObjectQueryParams::AllDynamicObjects, FCollisionShape::MakeCapsule(AttackRadius, AttackRange * 0.5f), Params); //bool bHitResult = GetWorld()->SweepMultiByProfile(HitResults, Start, End, FQuat::Identity, TEXT("ABCapsule"), FCollisionShape::MakeCapsule(AttackRadius, AttackRange * 0.5f), Params); if (bHitResult) { for (const auto& HitResult : HitResults) { FDamageEvent DamageEvent; HitResult.GetActor()->TakeDamage(AttackDamage, DamageEvent, GetController(), this); } } #if ENABLE_DRAW_DEBUG FVector CapsuleOrigin = Start + (End - Start) * 0.5f; float CapsuleHalfHeight = AttackRange * 0.5f; DrawDebugLine(GetWorld(), Start, End, FColor::Purple, false, 2.f); FColor Color = FColor::Red; if (bHitResult) { if (HitResults.Num() > 2) { Color = FColor::Cyan; } else if (HitResults.Num() > 1) { Color = FColor::Magenta; } else if (HitResults.Num() > 0) { Color = FColor::Green; } } DrawDebugCapsule(GetWorld(), CapsuleOrigin, CapsuleHalfHeight, AttackRadius, FRotationMatrix::MakeFromZ(GetActorForwardVector()).ToQuat(), Color, false, 1.f); #endif } Collision 을 채널 또는 프로파일로 할 경우 아래와 같이 가장 가까운 물체만 충돌감지를 합니다. (초록색의 경우 1개만 감지했을때)Collision 을 오브젝트 타입으로 할 경우 위와 같은 문제가 발생하지 않습니다. (청록색의 경우 3개 이상 감지 했을때)왜 이러나 디버깅을 해보려 하였는데 내부 구현이 전부 템플릿으로 되어있어 디버깅이 어렵더라고요... 하여 혹시나 위의 문제가 왜 발생하는건지 아시는지 궁금하여 질문드려봅니다.확인차 강의에서 제공되는 샘플코드에서도 테스트를 해봤는데 위와 같은 문제가 똑같이 발생하네요. Sweep 이 아닌 LineTrace 일때도 결과는 똑같았습니다.
-
해결됨직장인에게 꼭 필요한 파이썬-아래아한글 자동화 레시피
이미지를 글자와 겹쳐서 삽입하는 방법
좋은 강의 감사드립니다.한 가지 질문이 있어 문의드립니다. 한/글 파일에 사용인감 이미지를 첨부하고 싶은데요현재까지는 표를 만들어서 특정 셀에 이미지를 입력하는 방법까지 구현해봤습니다.그런데 한글 서식에서는 보통 "(서명)" 글자와 겹쳐서 이미지를 삽입하는데요이와 같이 이미지를 글자와 겹쳐서 삽입하는 것도 가능할까요?간단한 Tip이나 예제가 있으면 부탁드립니다.감사합니다.
-
미해결스프링 핵심 원리 - 고급편
쓰레드 로컬 vs 프로토타입 빈
결국 traceID가 서로 다른 쓰레드에서 같은 값을 가지게 되니쓰레드로컬을 이용해서 따로 traceId를 관리 하는거잖아요?그런데 그냥 애초에 Trace클래스 자체의 빈스코프를 프로토타입으로 해버리면각각의 쓰레드가 Trace클래스를 DI받을때마다 쓰레드마다 다른 Trace클래스가 생성되니따로 관리를 할 필요가 없지 않나요?이렇게되면 어떠한 오버헤드가 발생하나요?
-
해결됨아이비의 안드로이드 드릴
[실습] 7. 추상클래스와 인터페이스 에서 stepCount에 대한 질문이 있습니다.
해결완료 질문입니다.
-
미해결스프링 핵심 원리 - 고급편
쓰레드 로컬 데이터 저장위치 질문
ThreadLocalLogTrace는 싱글톤이잖아요?그러므로 A와 B에서 참고하는 ThreadLocalLogTrace 참조값은 같은 값을 가리킬꺼같은데,여기서 ThreadLocal<TraceId> 필드는각 A쓰레드 B쓰레드 각각의 공유하지 않는고유의 데이터영역에 저장되는것인가요?(JVM에서 STACK과 PC Register처럼)아니면 일종의 해시함수처럼 작용하여A쓰레드에서의 요청이면 알아서 A의 데이터B쓰레드에서의 요청이면 알아서 B의 데이터를 주는것인가요?만약 전자라면 이게 어떻게 가능한것인지?
-
미해결애플 웹사이트 인터랙션 클론!
게속 오류떠서 글 작성해봐요....
Uncaught TypeError: Cannot read properties of undefined (reading 'scrollHeight') at scrollLoop (main.js:367:65) at main.js:388:9 이런 오류 떠서 제 자바 스크립트 코드도 여기 올려볼께요....
-
해결됨
How Could Your Deal With Error State Trouble While Using Printer
"Printer showing in error state" is a common issue encountered by HP printer users. This problem can arise due to various reasons such as paper jams, connectivity issues, outdated printer drivers, or hardware problems. Here are some steps you can take to troubleshoot and fix this 'HP printer in error state windows 10' issue:Check for Paper Jams: Open the printer cover and check for any paper jams. Remove any stuck paper carefully.Restart Printer: Turn off the printer, wait for a few seconds, and then turn it back on. Sometimes, a simple restart can resolve the error state issue.Check Printer Connections: Ensure that the printer is properly connected to your computer or network. If it's a wireless printer, check the Wi-Fi connection and make sure it's stable.Update Printer Drivers: Outdated or corrupted printer drivers can cause various issues. Visit the HP website, download the latest drivers for your printer model, and install them on your computer.Reset Printer: Sometimes, resetting the printer to its factory settings can resolve persistent issues. Refer to your printer's manual for instructions on how to reset it.Clear Print Queue: There might be pending print jobs in the print queue causing the error state. Clear the print queue by canceling all print jobs.Check for Firmware Updates: Check if there are any firmware updates available for your printer model on the HP website. Updating the firmware can fix bugs and improve printer performance.Run HP Print and Scan Doctor: HP provides a diagnostic tool called HP Print and Scan Doctor which can automatically diagnose and resolve various printer issues. Download and run this tool to troubleshoot the error state problem.Inspect Hardware: If none of the above steps resolve the issue, there might be a hardware problem with the printer. Inspect the printer for any visible damage or malfunctioning parts. If necessary, contact HP support or a qualified technician for further assistance.By following these steps, you should be able to troubleshoot and resolve the "printer showing in error state" issue for your HP printer.While Having Wifi Connectivity Issue Check This HereEncountering issues with your HP printer not connecting to WiFi can be frustrating, disrupting your workflow and productivity. However, fret not! This comprehensive guide is crafted to assist you in troubleshooting the problem effectively, ensuring seamless connectivity with your HP printer.Check Network Connection:Begin by verifying if your WiFi network is working properly. Ensure other devices can connect without any issues.Restart your WiFi router and modem. Sometimes, a simple reboot can resolve connectivity issues.Printer Placement:Ensure your HP printer is placed within the WiFi range. Walls, electronic devices, and other obstructions can weaken the signal strength.Avoid placing the printer in close proximity to microwave ovens, cordless phones, or other electronic devices that might interfere with the WiFi signal.Verify Printer Settings:Access the printer's control panel and navigate to the wireless settings.Ensure that WiFi is enabled on your printer and that it is connected to the correct network.Double-check the WiFi network name (SSID) and password entered on the printer to avoid any typos.Restart Printer:Turn off your HP printer, wait for a few seconds, and then turn it back on.Sometimes, a simple restart can help reset the printer's connectivity settings and establish a fresh connection to the WiFi network.Update Printer Firmware:Check if there are any pending firmware updates available for your HP printer.Visit the official HP website, navigate to the support section, and download/install the latest firmware updates for your printer model.Reconfigure WiFi Settings:If the printer still fails to connect, you may need to reconfigure its WiFi settings.Reset the printer's network settings to default and then set up the WiFi connection again using the printer's control panel or HP Smart app.Firewall/Antivirus Settings:Check your firewall or antivirus settings to ensure they are not blocking the printer's connection to the WiFi network.Temporarily disable firewall or antivirus software and attempt to reconnect the printer to WiFi.By following the steps outlined in this guide, you can troubleshoot and resolve HP Printer won't connect to wifi issue efficiently.
-
해결됨블렌더 3D 미피 캐릭터 인사하는 애니메이션 만들기
어플라이를 왜하는건가요?
아 뭔가 배웠는데그 지점을 다시 찾을 수가없어요 ㅠㅠㅋㅋ어플라이는 언제 왜 해주는걸까요?구글에서 검색해서 알아보고왔는데 ~수정한 부분을 영구적으로 사용하고싶을때 라고하는데 무슨 소린지 잘 모르겠어요 송생님
-
해결됨Go Hard to C (feat. Algorithm)
음질이 안좋습니다
초반부 듣고 있는데 말 중간 중간에 소리가 계속 끊겨서 들립니다. 잡음도 간간히 들리네요.영상 촬영하시고 검수해보셨나요..
-
해결됨PowerApps 2단계, 우리 회사에 필요한 모바일 앱 만들기
파워오토메이트 파워앱스간 연동불가
파워앱스에서 가닥을 잡고 쉐어포인트에서 LIST 를 만든 후, 파워오토메이트에서 들어와서 만들기-> 인스턴트 클라우드 흐름 으로 들어가서 PowerApps(V2) 트리거 선택 후, 동작->쉐어포인트로 들어가서 항목만들기로 사이트와 목록을 불러오는데 까진 성공했으나 '사용할 수 있는 동적 콘텐츠가 없음' 이라고 계속 떠서 전진을 못합니다. MS가 워낙 업데이트를 자주해서 UI가 바뀌어서, 강의랑 인터페이스가 바뀌어서 당황스러워요.. 어떻게 하면 될까요?
-
미해결[신규 개정판] 이것이 진짜 크롤링이다 - 실전편 (인공지능 수익화)
이미지 수집이 28번 이후로 이미지가 안떠요
스크롤도 잘내려가다가 갑자기 안되는경우도 잇습니다 ㅜㅜ 왜그런걸까요ㅜ
-
미해결김영한의 실전 자바 - 중급 1편
charArr 출력값에 대하여 질문있습니다.
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? (예/아니오)2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? (예/아니오)3. 질문 잘하기 메뉴얼을 읽어보셨나요? (예/아니오)[질문 내용]여기에 질문 내용을 남겨주세요.이 부분에서 charArr은 참조변수니까 인덱스를 따로 지정하지 않고 charArr을 통째로 출력하면 참조값이 나와야 하는거 아닌가요? 강의에서는 hello가 출력되더라고요 아무리 생각해도 이상해서 제가 놓친 개념이 있는 거 같아서 궁금해서 질문드립니다.추가로 System.out.println(charArr)을 하면 hello가 나오던데 사진처럼 "charArr = " + charArr로 하니까이렇게 참조값이 나오더라고요 무슨 차이인지도 궁금합니다.
-
미해결운영체제 공룡책 강의
24:35초에 설명하는 time-sharing이 책에서 다루는 내용과 달라요.
Timesharing is allowing many users to interact concurrently with the single computerMultitasking is when multiple tasks are preformed during the same period of time in a single processor.책이나 다른 자료들에서는 time sharing 이 여러 유저들에게 일정한 시간을 단위로 cpu 를 점유할 수 있게 한다고 하는데, 이 강의에서 다루는 내용은 프로세서들을 메모리에 다 저장해놓고, 시간을 나눠서 사용하는 것이 time sharing 이라고 했어요, 유저들 간의 사용성이 언급되지 않았어요.혹시 강의 내용이 잘못된것인가 저의 이해가 부족한 것인가 싶어서 질문 드립니다.감사합니다.
-
해결됨[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스
VSC에서 yarn dev가 작동하지 않습니다 (섹션 4)
안녕하세요. Node.js 챕터 수강 중인 학생입니다.과제를 만들기에 앞서 freeboard_frontend 폴더에서 yarn dev 명령어 실행하려는데,사이트 접속할 때마다 에러라고 뜹니다. ls 명령어로 확인도 하는데 왜 이러는지 모르겠네요.. 검색해도 뾰족한 대안이 안 나오고해결 부탁 드리겠습니다 ㅠㅠ
-
미해결스프링 DB 2편 - 데이터 접근 활용 기술
트랜잭션 적용 확인
[질문 내용]TxBasicTest 클래스 안에 BasicService가 있는데 왜 Autowired로 의존성주입이 필요한지 헷갈리고 궁금합니다ㅠㅠ
-
해결됨딥러닝 이론 + PyTorch 실무 완전 정복
2-8 fully connected NN answer 코드 중 torch.nn.Linear 질문드립니다!
안녕하세요. 강의 잘 듣고있습니다 :D아래 코드에서 torch.nn.Linear에 해당하는 부분이 강의서 말씀해주신 aggregation에 해당되는 부분일까요? 편의상 bias 벡터는 생략된걸까요..? class Model(torch.nn.Module) : def __init__(self) : super(Model, self).__init__() self.layers = torch.nn.Sequential( # 첫번째 레이어 torch.nn.Linear(in_features = 128, out_features = 64, bias = True), # 첫번째 레이어의 activation 함수 torch.nn.Tanh(), # 두번째 레이어 torch.nn.Linear(in_features = 64, out_features = 16, bias = True), # 두번째 레이어의 activation 함수 torch.nn.Tanh(), # 세번째 레이어 torch.nn.Linear(in_features = 16, out_features = 1, bias = True), # 세번째 레이어의 activation 함수 torch.nn.Sigmoid() ) def forward (self, x) : return self.layers(x)
-
미해결
스프링부트 코어 섹션 5 중 6강
본 영상에서는 싱글톤 패턴이 적용 되어 memberRepository 를 앞 메서드에서 생성하기 때문에 new memberRepository 가 생성이 안된 것을 알 수 있었는데요, 제가 테스트 코드 돌려보니 @Configuration 어노테이션 붙여도 memberRepository 가 계속 호출 되더라구요. 정상적인 작동인지 궁금합니다. 영상에서 나온 콘솔은call AppConfig.memberServicecall AppConfig.memberRepositorycall AppConfig.orderService입니다.https://github.com/bukwon/core
-
해결됨스프링 MVC 1편 - 백엔드 웹 개발 핵심 기술
서블릿 컨테이너에 서블릿 등록
[질문 템플릿]1. 강의 내용과 관련된 질문인가요? 예2. 인프런의 질문 게시판과 자주 하는 질문에 없는 내용인가요? 예3. 질문 잘하기 메뉴얼을 읽어보셨나요? 예[질문 내용]서블릿 컨테이너에 서블릿 객체를 등록한다의 뜻은 서블릿 객체를 스프링 빈으로 스프링 컨테이너에 등록한다는 것과 같은 뜻인가요? 이렇게 생각한 이유는 DispatcherServlet 서블릿 객체를 DispatcherServletConfiguration 설정 클래스(@Configuration)에서 @Bean을 통해 스프링 컨테이너에 스프링 빈으로 등록했기 때문입니다.