Update:application.yml for postgres
This commit is contained in:
parent
9cf67bab33
commit
4a5f66f521
|
@ -28,7 +28,7 @@ public class SimpleCORSFilter implements Filter {
|
||||||
HttpServletRequest request = (HttpServletRequest) req;
|
HttpServletRequest request = (HttpServletRequest) req;
|
||||||
HttpServletResponse response = (HttpServletResponse) res;
|
HttpServletResponse response = (HttpServletResponse) res;
|
||||||
//request.getHeader("Origin")
|
//request.getHeader("Origin")
|
||||||
response.setHeader("Access-Control-Allow-Origin", "http://localhost:3000");
|
response.setHeader("Access-Control-Allow-Origin", "http://localhost:3006");
|
||||||
response.setHeader("Access-Control-Allow-Credentials", "true");
|
response.setHeader("Access-Control-Allow-Credentials", "true");
|
||||||
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
|
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
|
||||||
response.setHeader("Access-Control-Max-Age", "600000");
|
response.setHeader("Access-Control-Max-Age", "600000");
|
||||||
|
|
|
@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.*;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
@CrossOrigin(origins = "http://localhost:3000")
|
@CrossOrigin(origins = "http://localhost:3006")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/simulator")
|
@RequestMapping("/simulator")
|
||||||
public class SimulatorController {
|
public class SimulatorController {
|
||||||
|
|
|
@ -14,10 +14,10 @@ spring:
|
||||||
okta:
|
okta:
|
||||||
issuer-uri: https://dev-125890.okta.com/oauth2/default
|
issuer-uri: https://dev-125890.okta.com/oauth2/default
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
password: riddhidave
|
password: riddhidave
|
||||||
url: jdbc:mysql://localhost:3306/playground?userSSL=false
|
url: jdbc:postgresql:spirisim
|
||||||
username: root
|
username: spirisim
|
||||||
jpa:
|
jpa:
|
||||||
generate-ddl: true
|
generate-ddl: true
|
||||||
hibernate:
|
hibernate:
|
||||||
|
|
|
@ -14,10 +14,10 @@ spring:
|
||||||
okta:
|
okta:
|
||||||
issuer-uri: https://dev-125890.okta.com/oauth2/default
|
issuer-uri: https://dev-125890.okta.com/oauth2/default
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
password: riddhidave
|
password: riddhidave
|
||||||
url: jdbc:mysql://localhost:3306/playground?userSSL=false
|
url: jdbc:postgresql:spirisim
|
||||||
username: root
|
username: spirisim
|
||||||
jpa:
|
jpa:
|
||||||
generate-ddl: true
|
generate-ddl: true
|
||||||
hibernate:
|
hibernate:
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
#Created by Apache Maven 3.6.3
|
||||||
|
groupId=com.example
|
||||||
|
artifactId=springbootapp
|
||||||
|
version=0.0.1-SNAPSHOT
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,14 @@
|
||||||
|
# Created at 2020-12-30T16:30:24.598
|
||||||
|
System.exit() or native command error interrupted process checker.
|
||||||
|
java.lang.IllegalStateException: Cannot use PPID 2448 process information. Going to use NOOP events.
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124)
|
||||||
|
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
|
||||||
|
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||||
|
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
|
||||||
|
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Created at 2020-12-30T17:15:39.181
|
||||||
|
System.exit() or native command error interrupted process checker.
|
||||||
|
java.lang.IllegalStateException: Cannot use PPID 2783 process information. Going to use NOOP events.
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124)
|
||||||
|
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
|
||||||
|
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||||
|
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
|
||||||
|
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Created at 2020-12-30T17:40:27.712
|
||||||
|
System.exit() or native command error interrupted process checker.
|
||||||
|
java.lang.IllegalStateException: Cannot use PPID 3208 process information. Going to use NOOP events.
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124)
|
||||||
|
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
|
||||||
|
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||||
|
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
|
||||||
|
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Created at 2020-12-30T17:48:39.137
|
||||||
|
System.exit() or native command error interrupted process checker.
|
||||||
|
java.lang.IllegalStateException: Cannot use PPID 3413 process information. Going to use NOOP events.
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124)
|
||||||
|
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
|
||||||
|
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||||
|
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
|
||||||
|
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Created at 2020-12-30T17:53:16.073
|
||||||
|
System.exit() or native command error interrupted process checker.
|
||||||
|
java.lang.IllegalStateException: Cannot use PPID 3551 process information. Going to use NOOP events.
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124)
|
||||||
|
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
|
||||||
|
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||||
|
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
|
||||||
|
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
# Created at 2020-12-30T17:56:28.741
|
||||||
|
System.exit() or native command error interrupted process checker.
|
||||||
|
java.lang.IllegalStateException: Cannot use PPID 3668 process information. Going to use NOOP events.
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.checkProcessInfo(PpidChecker.java:155)
|
||||||
|
at org.apache.maven.surefire.booter.PpidChecker.isProcessAlive(PpidChecker.java:124)
|
||||||
|
at org.apache.maven.surefire.booter.ForkedBooter$2.run(ForkedBooter.java:214)
|
||||||
|
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||||
|
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
|
||||||
|
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||||
|
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||||
|
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,11 +1,4 @@
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Test set: com.example.springbootapp.SpringbootappApplicationTests
|
Test set: com.example.springbootapp.SpringbootappApplicationTests
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.203 s <<< FAILURE! - in com.example.springbootapp.SpringbootappApplicationTests
|
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.195 s - in com.example.springbootapp.SpringbootappApplicationTests
|
||||||
contextLoads(com.example.springbootapp.SpringbootappApplicationTests) Time elapsed: 0.002 s <<< ERROR!
|
|
||||||
java.lang.IllegalStateException: Failed to load ApplicationContext
|
|
||||||
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
|
|
||||||
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
|
|
||||||
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
|
|
||||||
Caused by: java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue