본문 바로가기

전체 글

(171)
Error running <>. Command line is too long. Shorten the command line and rerun. Error running . Command line is too long. Shorten the command line and rerun. 어디서 많이 본듯한 에러 https://fishcoding.tistory.com/57 Command line is too long 하길레 Error running 'AppAdminApplication': Command line is too long. Shorten command line for AppAdminApplication or also for Spring Boot default configuration. 랑 헷갈려서 dynamic.classpath 추가해줬으나 해결되지 않았다 ..... 좀 더 찾아보니 ... 평소에 Intellij에서 작업하던 프로젝트의 테스..
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project adjuster: There are test failures. djusterApplicationTests.contextLoads ? IllegalState Failed to load Applicatio. 2022-10-24 15:24:09.132 INFO 34736 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2022-10-24 15:24:09.858 INFO 34736 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.11.Final 2022-10-24 15:24:11.600 INFO 34736 --- [ main] o.h..
ava.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors:1) Error injecting constructor, java.la java.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void ()' not found at org.jetbrains.idea.maven.server...
[React] 7. React hooks[3] - useReducer란? 7. React hooks[3] - useReducer란? 이번 포스팅은 [ React hook 중 useReducer에 대한 내용 ] 입니다. : ) https://ko.reactjs.org/docs/hooks-effect.html 1. useReducer 훅이란? - useState를 대체할 수 있는 함수이다. - React에서 컴포넌트의 상태 관리를 위해 기본적으로 가장 많이 쓰이는 hook은 state이다. - 좀 더 복잡한 상태 관리가 필요한 경우 reducer를 사용할 수 있다. ( 콜백대신 dispatch를 전달할 수 있기 때문이라고 볼 수 있는데, 이 부분은 이후 확인해 보자. ) - reducer는 이전 상태와 Action을 합쳐, 새로운 state를 만드는 조작을 말한다. ※ useRe..
[React] 7. React hooks[2] - useEffect란? 이번 포스팅은 [ React hook 중 useEffect에 대한 내용 ] 입니다. : ) https://ko.reactjs.org/docs/hooks-effect.html 1. useEffect 훅이란? - 컴포넌트가 렌더링 될 때 특정 작업을 실행할 수 있도록 하는 Hook이다. - 리액트의 useEffect 훅을 사용하면 함수 컴포넌트에서도 side effect를 사용할 수 있다. 1) 클래스형 컴포넌트에서는 생명주기 메소드를 사용할 수 있었는데, 이를 함수형 컴포넌트에서도 사용할 수 있게 되었다. 2) 즉, 라이프사이클 훅을 대체할 수 있게 되었다. (componentDidMount, componentDidUpdate, componentWillUnmount) - 컴포넌트가 마운트 됐을 때 (처음 ..
[React] 6. React Router (리액트 라우터) 사용하기 6. [React] 6. React Router (리액트 라우터) 사용하기 이번 포스팅은 [ React에서 페이지 이동 처리 하는 방법 ] 입니다. : ) 우리가 흔히 말하는 "페이지 이동"이라는 기능을 리액트에서는 리액트 라우터를 통해 처리할 수 있다. 라우팅이 무엇인지 간단하게 살펴보자. 1. 라우팅이란? - 간단하게 생각 하자면 사용자가 요청한 URL에 따라 해당 URL에 맞는 페이지를 보여주는 것이라고 생각할 수 있다. - 리액트에서는 라우팅 관련 라이브러리가 많이 있는데, 이중 가장 많이 쓰이는 리액트 라우터(React Router)를 사용해보려 한다. ※ SPA, SSR, SSG 등의 대한 개념을 어느정도 갖춘 상태에서 다음 내용을 진행하는것을 추천 한다. 리액트는 SPA (Single Pag..
스프링 시큐리티(Spring Security) - 로그인 로직 안됨 403 404 시큐리티 로그인 중 로그인 요청을 해도 계속 denied 된다.. configure 에 .loginProcessingUrl 맞게 셋팅하고 요청을 보냈는데 계속 안돼서 찾아보니 csrf 문제 라는 자료를 찾음.. 에러페이지를 지정했을 때 404나 405가 뜨면 csrf를 의심하자 (csrf 오류로 403이 뜨고 그 403을 처리할 에러페이지 지정 오류로 다시 404나 405가 발생할 수 있다) 해결 방법은configure 셋팅에 .and().csrf().disable(); 를 추가해줬다 @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .antMatchers("/admin/**")...
[intellij] 그래들 스프링부트 프로젝트 스프링 시큐리티(Spring Security) 로그인 해보기(gradle + springboot) - 5 이번 포스팅은 Spring Boot + Gradle + Security 를 이용한 로그인 구현하도록 하겠습니다! build.grdle 에 의존성 추가 implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.security:spring-security-test' 우선 아이디와 비밀번호를 받기 위한 기본 폼 main.html ID PW Log-in // 시큐리티에서 폼데이터 전송밖에 못받는것 같아서 따로 만들었다.. //name 은 .usernameParameter,.passwordParameter시큐리티 설정이랑 맞춘다 .js function fn_loginSubmit()..