본문 바로가기

intellij +springboot

(49)
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...
스프링 시큐리티(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()..
A bean with that name has already been defined in class path 문제 해결하기 SecurityConfiguration을 작성하던 중에 에러가 발생했다. authenticationManagerBean이 중복선언되었다는 내용이다. 열심히 오버라이딩을 할 방안을 찾다가 action에 있는 문구를 발견했다. Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true. spring.main.allow-bean-definition-overriding=true 그래서 application.yml로 가서 spring. 밑에 아래와 같은 내용을 추가했다. properties 인경우 spring.main.allow-bean-defin..
template might not exist or might not be accessible by any of the configured Template Resolvers 화면 템플릿을 찾지 못했다 는 에러 템플릿 이름을 잘 살펴보거나 경로를 맞춰줘야 한다 나같은 경우에는 Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exce ption [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [/fragment/header], template might not exist or might no t be accessible by any of the configured Template Resolvers (template: ..
[Error] jdbcUrl is required with driverClassName. defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans .BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactory' threw exception; nested exception ..