问题描述:
源码分支 master
根据文档进行部署和修改了配置文件 application.properties
目前在启动的时候,已经创建了数据库表,如下:
但是在控制台项目为启动成功,显示是SSLException
简要异常信息如下:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contractController': Unsatisfied dependency expressed through field 'contractService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contractService': Unsatisfied dependency expressed through field 'web3jMap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web3j' defined in class path resource [com/webank/webase/transaction/config/Web3Config.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.HashMap]: Factory method 'web3j' threw exception; nested exception is javax.net.ssl.SSLException: Failed to initialize the SSLContext: null
2022-01-05 15:16:57.852 [main] INFO ThreadPoolTaskExecutor() - Shutting down ExecutorService 'sdkThreadPool'
2022-01-05 15:16:57.853 [main] INFO DruidDataSource() - {dataSource-1} closing ...
2022-01-05 15:16:57.864 [main] INFO DruidDataSource() - {dataSource-1} closed
2022-01-05 15:16:57.864 [main] INFO DruidDataSource() - {dataSource-2} closing ...
2022-01-05 15:16:57.866 [main] INFO DruidDataSource() - {dataSource-2} closed
2022-01-05 15:16:57.883 [main] INFO AutoConfigurationReportLoggingInitializer() -
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2022-01-05 15:16:57.886 [main] ERROR SpringApplication() - Application startup failed
异常截图如下: