Mysql 설치 중, 내 컴퓨터에는 사용 중인 3306의 Port가 있어서, 3307 Port로 Setting후 설치하였다. 이후 DBeaver에서 Mysql 접속 시 3307Port로 접속 했어야 했는데, 3306의 Port로 접속하여서 "unable to load authentication plugin 'auth_gssapi_client'." Error가 뜬 것이었다.
Vscode에 있는 Powershell 터미널창에 yarn dev 명렁어 입력 시, 아래 오류 출력
PS C:\Users\Administrator\nextjs-blog> yarn dev
yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\Administrator\AppData\Roaming\npm\ya
rn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.co
m/fwlink/?LinkID=135170)를 참조하십시오.
위치 줄:1 문자:1
+ yarn dev
+ ~~~~
+ CategoryInfo : 보안 오류: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
< 해결 방법>
Vscode에있는 "Powershell"이 아닌, 시작->Powershell 권리자 권한 실행->
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force 입력 후,엔터
PS C:\Users\Administrator\Desktop\boot-source-20230228\complete\server> ./gradlew build
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
PS C:\Users\Administrator\Desktop\fc-my-books-master (2)> node -v
node : 'node' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다. 이름이 정확한지 확인하고 경로가 포함된 경우 경로가 올바른지 검증한 다음 다시 시도하십시오.
위치 줄:1 문자:1
+ node -v
+ ~~~~
+ CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Desktop\fc-my-books-master (2)>
Starting the development server...
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:471:10)
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:503:5
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:358:12
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at iterateNormalLoaders (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\loader-runner\lib\LoaderRunner.js:221:10)
C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\react-scripts\scripts\start.js:19
throw err;
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:133:10)
at module.exports (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:417:16)
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:452:10
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\webpack\lib\NormalModule.js:323:13
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at C:\Users\Administrator\Desktop\fc-my-books-master (2)\node_modules\babel-loader\lib\index.js:59:103 {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
7.javaedu10->project 경로의 Oracle developer 접속 후 새 접속 클릭
8.해당 계정 생성
Name:admin
사용자 이름:"sys as sysdba"
비밀번호:admin1234(Oracle Database XE Downloads 설치 시 설정했던 비밀번호)
이후 worksheet에
GRANT CONNECT, RESOURCE, DBA TO sys WITH ADMIN OPTION; 입력 후 F5 누르기(선택 사항, 안해도 해결 되었었다. 혹시 모르니 기입.)
9.intellij 환경 설정. 하단 참조
10.application.properties에 밑의 코드를 복사 붙여넣기 한다.
#server
server.port:9080
#Database
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@localhost:1521/xe
spring.datasource.username=sys as sysdba
spring.datasource.password=admin1234
이후 DemoApplication 실행 하면
2023-03-04T07:37:14.230+09:00 ERROR 1760 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2023-03-04T07:37:14.231+09:00 WARN 1760 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2023-03-04T07:37:14.234+09:00 INFO 1760 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-03-04T07:37:14.244+09:00 INFO 1760 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-03-04T07:37:14.260+09:00 ERROR 1760 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
이라고 Error 뜨던 것이
잘 실행 된 것을 확인 할 수가 있다.
구동 확인.
intellij 환경 설정
Help>Edit Custom VM Options..
≫ 인코딩 추가 설정
✓ -Dfile.encoding=UTF-8
✓ -Dconsole.encoding=UTF-8
IJ File Edit View Navigate Code Refactor Build Run Tools
mypc AppData Roaming JetBrains IdealC2022.1
C: Users
idea64.exe.vmoptions X
Commit Project
Pull Requests
^^^ ^>
<
produc 1
.gra
ide: 2
3
grac
out
sql
src
.giti
a.tx
buil
grad
grac
setti
> IIII Externa
>
Scratch
application.properties Xx
-Xmx2043m
Git Window Help product - C:WUsers#mypc#AF
idea64.exe.vm
Find Action...
Ctrl+Shift+A
-Dfile.encoding=UTF-8
-Dconsole.encoding=UTF-8
? Help
Learn IDE Features
What's New in IntelliJ IDEA
Getting Started
IntelliJ IDEA on YouTube
Keyboard Shortcuts PDF
Tip of the Day
My Productivity
Contact Support...
Submit a Bug Report...
Submit Feedback...
Show Log in Explorer
Collect Logs and Diagnostic Data
Delete Leftover IDE Directories...
Diagnostic Tools
Change Memory Settings
Edit Custom Properties...
Edit Custom VM Options...
Check for Updates...
Register Plugins...
About
Demo1Application run -> localhost:9080 Connected-> Static file index.html -> HTML console error message in "Failed to load resource: the server responded with a status of 404 (Not Found)"
Tomcat 가동된 것을 확인, 이후 localhost:9080에 접속 하였으나
404Error가 발생, thymeleaf에 있는 HTML이 뜨지 않고, Static에 있는 index.html이 계속 뜨게 되었다.
위의 사진과 같이 나와야 정상. 허나 Tomcat이 가동 중임에도 불구 하고
localhost:9080 접속 시,static/index.html만 클라이언트에서 가동 됨.
1.오류 해결 시작: 높은 원인을 우선적으로 조사
1.Port kill (How to Port kill 문서 참조) Port number를 9081~9083 변경 하였음 (실패)