프로젝트

[SpringBoot & JPA 프로젝트] requestRejectedException / Error executing DDL / FileNotFoundException

sian han 2022. 8. 11. 22:18

3시간 가량 Spring Security 를 이용한 구글 로그인을 구현하다가 아주 진이빠졌다

결론은 안하기로 함

 

 

※ requestRejectedException

아래는 requestRejectedException 이다. 이거 도대체왜 뜸 ? !!!!!!

이유를 모르겠어서 결국 구글 로그인은 빼기로 함

 

 

근디 build.gradle 에서 Spring Security 관련 의존성 다 삭제해도 이런 에러 계속 뜨거든용 그거

@SpringBootApplication(exclude = SecurityAutoConfiguration.class)

 이걸로 잡을 수 있음

 

 


 

 

아놔 머스테치에서 타임리프로 다시 바꿔야겠음 .. 머스테치에서 로직을 사용할 수 없다는게 너무 불편함. 페이징이랑 검색 .. 이런것들 어떻게 한단말임 ? 구글링 했을때 자료도 너무 없고 다 똑같은 내용들 뿐임..

제목은 언제나 '머스테치로 화면구성하기'

다들 향로님의 책을 읽고 쓴 포스트인것같음.

따라서 구글링을 통해 내가 추가로 얻을 수 있는 정보가 없었음 !! => 머스테치로 바꿔놓은거 다시 타임리프로 바꿈

 

▶ thymeleaf fragment

 

top.html

<!doctype html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="fragment-head">
    <meta charset="UTF-8">
    <meta name="description" content="Ogani Template">
    <meta name="keywords" content="Ogani, unica, creative, html">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>뜨개장터</title>

    <!-- Google Font -->
    <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;900&display=swap" rel="stylesheet">

    <!-- Css Styles -->
    <link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="/css/jquery-ui.min.css" type="text/css">
    <link rel="stylesheet" href="/css/style.css" type="text/css">
    <link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
.
.

 

bottom.html

<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<footer class="footer spad" th:fragment="fragment-footer">
    <div class="container">
      .
      .
      .

    </div>
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript" text="javascript"></script>
    <script th:src="@{/js/jquery-ui.min.js}" type="text/javascript" text="javascript"></script>
    <script src="https://kit.fontawesome.com/d4af3bb512.js" crossorigin="anonymous"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/main.js}"></script>
</footer>
</html>

 

 


Error executing DDL 오류 

 

Error executing DDL 오류가 나면서 Order 테이블 생성 쿼리가 날라가지 않음

 

에러내용 = 문법오류

DB의 컬럼명은 예약어를 피해서 작성해야하는데, 예약어 중 'ORDER' 가 있었다.

Order => OrderInfo 로 테이블명을 변경하니 정상적으로 작동됨

 

 


FileNotFoundException 

FileNotFoundException : org/springframework/security/oauth2/client/userinfo/OAuth2UserService.class

 

와학 저 이 에러 잡다가 프로젝트 버리고 새로 시작할라했다니깐요 . . 

 

Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [com.proj.KnitMarket.KnitMarketApplication]; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/security/oauth2/client/userinfo/OAuth2UserService.class] cannot be opened because it does not exist
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:189)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:331)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:247)
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:311)
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:112)
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:740)
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:415)

벗 GSON 라이브러리 gradle.build 에서 삭제했다가 다시 설치하니까 오류 해결댐