收藏
回答

SpringBoot服务部署失败,是为什么?下面是日志

AppID
wxcf397ebaf1378b93 prod-3g1hjw0j55181537 tid=583711 rid=multi_tenant_1rpWsT9Nlk6X2j dc2h-music ptid=425805 bid=41157250 dc2h-music-003
  • Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
  • 03/28 01:29:32
  • dc2h-music-002
  • ... 24 common frames omitted
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ~[spring-beans-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863) ~[spring-beans-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396) ~[spring-orm-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409) ~[spring-orm-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) ~[spring-orm-5.3.13.jar!/:5.3.13]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1494) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1460) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:127) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:175) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:178) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:275) ~[hibernate-core-5.6.1.Final.jar!/:5.6.1.Final]
  • 03/28 01:29:32
  • dc2h-music-002
  • Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) [dc2h-music-0.0.1.jar:0.0.1]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [dc2h-music-0.0.1.jar:0.0.1]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) [dc2h-music-0.0.1.jar:0.0.1]
  • 03/28 01:29:32
  • dc2h-music-002
  • at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [dc2h-music-0.0.1.jar:0.0.1]
  • 03/28 01:29:32
  • dc2h-music-002
  • at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_275]
  • 03/28 01:29:32
  • dc2h-music-002
  • at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_275]
  • 03/28 01:29:32
  • dc2h-music-002
  • at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_275]
  • 03/28 01:29:32
  • dc2h-music-002
  • at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_275]
  • 03/28 01:29:32
  • dc2h-music-002
  • at com.dc2h.dc2hmusic.Dc2hMusicApplication.main(Dc2hMusicApplication.java:10) [classes!/:0.0.1]
  • 03/28 01:29:36
  • dc2h-music-002
  • 2024-03-27 17:29:35.705 INFO 1 --- [ main] com.dc2h.dc2hmusic.Dc2hMusicApplication : No active profile set, falling back to default profiles: default
  • 03/28 01:29:36
  • dc2h-music-002
  • 2024-03-27 17:29:35.700 INFO 1 --- [ main] com.dc2h.dc2hmusic.Dc2hMusicApplication : Starting Dc2hMusicApplication v0.0.1 using Java 1.8.0_275 on dc2h-music-002-864f6464d5-k74hb with PID 1 (/app/dc2h-music-0.0.1.jar started by root in /app)
  • 03/28 01:29:36
  • dc2h-music-002
  • :: Spring Boot :: (v2.6.1)
  • 03/28 01:29:36
  • dc2h-music-002
  • =========|_|==============|___/=/_/_/_/
  • 03/28 01:29:36
  • dc2h-music-002
  • ' |____| .__|_| |_|_| |_\__, | / / / /
  • 03/28 01:29:36
  • dc2h-music-002
  • \\/ ___)| |_)| | | | | || (_| | ) ) ) )
  • 03/28 01:29:36
  • dc2h-music-002
  • ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  • 03/28 01:29:36
  • dc2h-music-002
  • /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
  • 03/28 01:29:36
  • dc2h-music-002
  • . ____ _ __ _ _
  • 03/28 01:29:39
  • dc2h-music-002
  • 2024-03-27 17:29:38.194 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 5 ms. Found 0 JPA repository interfaces.
  • 03/28 01:29:39
  • dc2h-music-002
  • 2024-03-27 17:29:38.125 INFO 1 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
  • 03/28 01:29:41
  • dc2h-music-002
  • 2024-03-27 17:29:40.191 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 80 (http)
  • 03/28 01:29:42
  • dc2h-music-002
  • 2024-03-27 17:29:41.796 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...


回答关注问题邀请回答
收藏
登录 后发表内容
问题标签