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;
|
||||
HttpServletResponse response = (HttpServletResponse) res;
|
||||
//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-Methods", "POST, GET, OPTIONS, DELETE");
|
||||
response.setHeader("Access-Control-Max-Age", "600000");
|
||||
|
@ -45,4 +45,4 @@ public class SimpleCORSFilter implements Filter {
|
|||
public void destroy() {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
import java.util.Map;
|
||||
|
||||
|
||||
@CrossOrigin(origins = "http://localhost:3000")
|
||||
@CrossOrigin(origins = "http://localhost:3006")
|
||||
@RestController
|
||||
@RequestMapping("/simulator")
|
||||
public class SimulatorController {
|
||||
|
|
|
@ -14,10 +14,10 @@ spring:
|
|||
okta:
|
||||
issuer-uri: https://dev-125890.okta.com/oauth2/default
|
||||
datasource:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
driver-class-name: org.postgresql.Driver
|
||||
password: riddhidave
|
||||
url: jdbc:mysql://localhost:3306/playground?userSSL=false
|
||||
username: root
|
||||
url: jdbc:postgresql:spirisim
|
||||
username: spirisim
|
||||
jpa:
|
||||
generate-ddl: true
|
||||
hibernate:
|
||||
|
|
|
@ -14,10 +14,10 @@ spring:
|
|||
okta:
|
||||
issuer-uri: https://dev-125890.okta.com/oauth2/default
|
||||
datasource:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
driver-class-name: org.postgresql.Driver
|
||||
password: riddhidave
|
||||
url: jdbc:mysql://localhost:3306/playground?userSSL=false
|
||||
username: root
|
||||
url: jdbc:postgresql:spirisim
|
||||
username: spirisim
|
||||
jpa:
|
||||
generate-ddl: true
|
||||
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
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.203 s <<< FAILURE! - 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
|
||||
|
||||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.195 s - in com.example.springbootapp.SpringbootappApplicationTests
|
||||
|
|
Loading…
Reference in New Issue