공부 (30) 썸네일형 리스트형 [PowerShell] powershell script SecurityError UnauthorizedAccess + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess PowerShell ExecutionPolicy - Restricted : 기본값, Windows의 Client에 제한됨. - RemoteSigned : 로컬 스크립트 및 원격 서명된 스크립트에 대해 허용 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned Execution Policy Change The execution policy helps protect you from scripts that you do not trust. Changing the execution policy.. [Node.js] nvm설치후 버전변경 node.js 다운그레이드를 위한 nvm설치 https://github.com/coreybutler/nvm-windows/ GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go. A node.js version management utility for Windows. Ironically written in Go. - GitHub - coreybutler/nvm-windows: A node.js version management utility for Windows. Ironically written in Go. github.com nvm -v : 설치 확인/버전 확인.. [Spring] WebSecurityConfigurerAdapter Deprecated https://spring.io/blog/2022/02/21/spring-security-without-the-websecurityconfigureradapter/ Spring Security without the WebSecurityConfigurerAdapter In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigurerAdapter, as we encourage users to move towards a component-based security configuration. To assist with the transition to this new style of configuration, we have compiled a list of .. [Spring] Jwt 의존성 설정 오류 : UnknownClassException 오류 내용 io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtBuilder] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Class could not be found. Have you remembered to include the jjwt-impl.jar in your runtime classpath? 문제코드 implementation 'io.jsonwebtoken:jjwt-api:0.12.3' 참고 사이트 https://git.. JPA Entity Column을 카멜케이스로 변경하기 JPA Hibernate는 자동으로 스네이크 케이스를 이용하기 때문에 카멜케이스를 사용하기 위해선 application.properties에 다음과 같이 설정해준다 spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl 출처 : https://wakestand.tistory.com/938 [JAVA / Spring] DI의 구현 방법 DI(Dependency Injection)을 구현하는 방법에는 아래의 3가지 방법이 있다. 1. Field Injection 2. Setter Injection 3. Constructor Injection 1. Field Injection(필드 주입) @Service public class ExampleServiceImpl implements ExampleService { @Autowired private SampleService sampleService; @Override public void exampleMethod() { sampleservice.sampleMethod(); } } 변수 선언부에 @Autowired 어노테이션을 붙인다. 2. Setter Injection @Service publi.. [Web] REST API 규칙 REST API 규칙 URL Rules 1. 마지막에 "/"를 붙이지 않는다. http://www.example.com/api/products/ (X) http://www.example.com/api/product (O) 2. 소문자를 사용한다. http://www.example.com/api/Users/UserLogin (X) http://www.example.com/api/users/userlogin (O) 3. '_' 대신 '-'를 사용한다. http://www.example.com/api/users/user_profiles (X) http://www.example.com/api/users/user-profiles (O) 4. 컨트롤 자원을 의미하는 동사는 사용할 수 있다. http://www.ex.. [Web] URI, URN, URL 구분하기 URI URI (Uniform Resource Identifier) 는 URL (Uniform Resource Location)과 URN (Uniform Resource Name)의 상위 개념이다. URI ⊃ URL, URN URI 는 HTTP에서 리소스 식별을 위한 것이다. URN 과 URL URN (Uniform Resource Name) - URN은 특정 네임 스페이스에서 이름으로 리소스를 식별하는 URI이다. 예시 : urn:isbn:{ISBN 숫자} urn:uuid:{범용 고유 식별자} 인터넷 상에서 어떤 자원을 식별할 때 사용하며, 다양한 분야에서 이용하고 국제적으로 표준화 되어있다. URL (Uniform Resource Location) URL의 구성 protocol - 일반적으로 웹은 h.. 이전 1 2 3 4 다음