일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- Kibana
- PostgreSQL
- 자바
- 쉘스크립트
- docker
- DBMS
- IntelliJ
- 후기
- Python
- oracle
- spring
- iBatis
- java
- 인덱스
- SQL
- 오블완
- error
- git
- Javascript
- mysql
- pandas
- 티스토리챌린지
- 리눅스
- Linux
- 네트워크
- MariaDB
- 독서
- mssql
- github
- 명령어
- Today
- Total
목록SPRING/SPRING-ERROR (27)
hanker
기존에 작성한 코드 @ManyToOne @JoinColumn(name = "mberIdx") private MemberInfo memberInfo; Entity 클래스에서 @JoinColumn 설정 후 실행을 하면 매핑에 반복되는 Column이있다고 나온다. @ManyToOne @JoinColumn(name = "mberIdx", insertable = false, updatable = false) private MemberInfo memberInfo; @JoinColumn에 속성값 insertable, updatable을 false로 주고, 재실행하면 정상적으로 작동된다. @JoinColumn 의 속성중에서 insertable = true, false (false로 설정하면 데이터를 insert할 때 ..
데이터 유형 중 int는 null 허용이 되지 않아서, int 대신 Integer를 사용해주면 된다. @Data public class voExam{ // 생략 private Integer boxIdx; }

List.of를 사용하려고 하는데, 오류가 발생했다. 내용을 보면 List안에 of메소드를 찾을 수 없다고 나오는데, 확인해보니 List.of는 java9 버전 이상부터 사용가능하다. 그래서 대신 Arrays.asList를 사용해서 처리했다. Arrays.asList와 List.of의 차이점은 분명히 있지만 어떤 방식에 사용하냐에 따라 다르다고 한다. 그래서 차이점을 찾아보고 알맞게 사용하시길..

- 배열의 크기보다 인덱스가 크거나 음수가 들어갔을때 나오는 오류 * 인덱스가 클 경우 public class ToStringTest { public static void main(String[] args) { // ar[4] = ar[0], ar[1], ar[2], ar[3] int[] ar = new int[4]; // ar에 값 넣기 for(int i = 0 ; i < ar.length ; i++){ ar[i] = i; } System.out.println(ar[4]); } } 가끔 실수할 때가 있다. 배열 인덱스는 0 ~ n-1

@ConfigurationProperties 어노테이션 사용중 갑작스러운 빨간알림이 생겼다. 우측에 보면 Open Documentation이라고 보이는데 클릭하면 docs.spring.io 사이트로 이동된다. 어떻게 처리할지 친절하게 알려준다. pom.xml org.springframework.boot spring-boot-configuration-processor true gradle.build dependencies { annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" } 적용하고 오류가 안사라지길래 File - Invalidate Caches 클릭해서 재실행 했더니 깔끔하게 사라졌다.

h2-console을 사용하여 개발을 진행하던 중 Spring security를 적용하니 갑자기 h2-console이 적용이 안된다. 음..? spring security를 적용하면서 h2-console/** 까지 막아버려서(?) 그렇다 설정파일에 h2-console을 허용 시켜보자 각자가 설정한 SecurityConfig 클래스를 보면 @Override protected void configure(HttpSecurity http) throws Exception{ http .authorizeRequests() .antMatchers("/","/**").access("permitAll") .antMatchers("/h2-console/**").permitAll() // 추가 .and() .csrf() //..

Cannot resolve MVC view ... 404 Error 가 발생 index.html 파일을 읽기위해 Controller를 생성해서 return 값을 줄 때 Cannot resolve MVC view .. 라는 경고가 발생하며 404 Error가 떴다. * 해결 1. pom.xml 파일에 org.springframework.boot spring-boot-starter-thymeleaf 추가해주면 경고가 사라지고 404 Error도 사라진다 2. 경로에 파일이 없을 때에도 경고가 뜬다. 이렇게 boot.html 파일을 만들어 주면 경고가 사라진다.

Spring jar 파일 실행도중 jar파일 수정, 삭제 시 발생 하는 에러였다.

spring security 적용 후 실행을 했더니 오류가 발생했다. Description: Method springSecurityFilterChain in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration required a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegistrationRepository' Action: Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.ClientRegis..