描述:

我正在尝试使用Jhipster做一些休息api,我做得很好 .

我做了:

  • 首先设置Jhipster Registry .

  • 然后创建休息应用程序 .

  • 在应用程序中我创建了一个名为 car 的实体 .

  • 应用程序的设置网关 .

  • in gateway配置休息应用程序中可用的实体 .

  • 并在浏览器上完成并正常运行 .

我指的是这个网站来设置jhipster .

https://www.baeldung.com/jhipster-microservices

  • 正确应用和网关设置 .
  • 正常运行

问题:

在尝试添加新条目时,它会给我这样的错误 .

错误:

2018-10-12 16:19:01.172 ERROR 2656 --- [XNIO-2 task-4] o.z.problem.spring.common.AdviceTrait:内部服务器错误org.springframework.dao.InvalidDataAccessResourceUsageException:无法提取ResultSet; SQL [不适用];嵌套异常是org.hibernate.exception.SQLGrammarException:无法在org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:240)中提取ResultSet (HibernateJpaDialect.java:223)在org.springframework上org.springframework.dorm.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)的org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:527) . 位于org.springframework.aop.framework.ReflectiveMethodInvocation.proceed的org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)中的dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)(ReflectiveMethodInvocation.java: 185)在org.springframework.data.jpa.reposito位于org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)的org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor . )中的ry.support.CrudMethodMetadataPostProcessor $ CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:135) . java:92)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)atg.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:61)org.springframework .aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)位于com.sun.proxy的org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) . $ Proxy193.save(未知来源)at at com.car.app.service.impl.CarServiceImpl.save(CarServiceImpl.java:46)at com.car.app.service.impl.CarServiceImpl $$ Fast在org.springframework.aop.framework.CglibAopProxy $ CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)的org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)上的ClassBySpringCGLIB $$ 3e4474a2.invoke() .springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)atg.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)at com.car.app.aop.logging.LoggingAspect.logAround (LoggingAspect.java:85)在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)的sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at at org.springframework.aop.aspectj.AbstractAspectJAdvice.inv上的org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)中的java.lang.reflect.Method.invoke(Method.java:498)在org.springframework的org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)的okeAdviceMethod(AbstractAspectJAdvice.java:633) org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java)中org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)的.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:62) :294)在在org.springframework.aop.interct.ExringInvocationInterceptor.invoke的org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)中的org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) ExposeInvocationInterceptor.java:92)atg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)at com.car .app.service.impl.CarServiceImpl $$ EnhancerBySpringCGLIB $$ 27cb3725.save()在com.car.app.web.rest.CarResource.createCar(CarResource.java:57)在com.car.app.web.rest . orR.springframework.aop.framework.CglibAopProxy $ CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)中org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)中的CarResource $$ FastClassBySpringCGLIB $$ ccb383f6.invoke() )org.springframework.aop.framework .ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)atg.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)at com.car.app.aop.logging.LoggingAspect.logAround(LoggingAspect.java:85 )sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect . 方法.invoke(Method.java:498)org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)atg .springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)在org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)在org.springfr amework.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:62)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor . java:92)atg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)at com.ryantenney.metrics.spring.TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:48)at com.ryantenney.metrics.spring .TimedMethodInterceptor.invoke(TimedMethodInterceptor.java:34)位于org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)的com.ryantenney.metrics.spring.AbstractMetricMethodInterceptor.invoke(AbstractMetricMethodInterceptor.java:59) org.springframework.aop.framework.CglibAopProxy $ DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)在com.car.app.web.rest.CarResource $$ EnhancerBySpringCGLIB在e.aa88b3.createCar()at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at at java.lang.reflect.Method.invoke(Method.java:498)位于org.springframework.web.method.support.InvocableHandlerMethod的org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) . invokeForRequest(InvocableHandlerMethod.java:136)位于org.springframework.web.servlet.mvc.method.annotationMappingHandlerAdapter的org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) . invokeHandlerMethod(RequestMappingHandlerAdapter.java:891)在org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)在org.springframework.web.servlet.mvc.met hod.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)atg.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)在org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)在org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)在位于org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)的javax.servlet.http.HttpServlet.service(HttpServlet.java:707),位于javax.servlet.http.HttpServlet.service(HttpServlet.java: 790)在com.odahale.metrics.servlet的io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)at io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:129) .AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:111)在io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)在io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:131 )atg.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)atg.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)at io.undertow.servlet.core.ManagedFilter . doFilter(ManagedFilter.java:61)在io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandle) r.java:131)在org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:90)在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)在io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)的io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:131)org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:320)在org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)在org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter (FilterSecurityInterceptor.java:91)在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)在org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)在org.springframework.security.web位于org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy)的org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)中的.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)的.java:334)在org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)的组织 . springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)位于org.springframework.security.web.savedrequest的org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334) . RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)at org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.jav)一:334)在com.car.app.security.jwt.JWTFilter.doFilter(JWTFilter.java:38)在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)在org.springframework位于org.springframework.security.web.header的org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)的.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)位于org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)的org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)中的.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66) )在org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)在org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)在org.springframework.security . web.context.request.async.Web位于org.springframework.security.web.FilterChainProxy $ VirtualFilterChain.doFilter(FilterChainProxy.java:334)的org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)中的AsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)在org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)在org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)在org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)atg.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)at io.undertow.servlet.core.ManagedFilter.doFilter( ManagedFilter.java:61)在org.springframework的org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)的io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:131)位于io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)的.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)at io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler) .java:131)在org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)at io.undertow.servlet . core.ManagedFilter.doFilter(ManagedFilt er.java:61)在org.springframework的org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)的io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:131)位于io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)的.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)at io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler) .java:131)org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:155)org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter)的.java:123)在org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:108)在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)在io.undertow.servlet.core.ManagedFilter.doFil在org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)的oro.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter(FilterHandler.java:131)上的ter(ManagedFilter.java:61) .springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)at io.undertow.servlet.handlers.FilterHandler $ FilterChainImpl.doFilter (FilterHandler.java:131)io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)at io . 在io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)的io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest中的underow.servlet.handlers.ServletChain $ 1.handleRequest(ServletChain.java:64) (SSLInformationAssociationH andler.java:132)在io.undertow的io.undertow.servler.server.handvage上的io.undertow.server.handler.PredicateHandler.handleRequest(PredicateHandler.java:43)的io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) .security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)at io.undertow.servlet.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler .java:60)ato.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)at io.undertow的io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) . io.undertow.server.h中的server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) andlers.PredicateHandler.handleRequest(PredicateHandler.java:43)at io.undertow.servlet.handlers.SessionRestoringHandler.handleRequest(SessionRestoringHandler.java:119)at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) at io.undertow.servlet.handlers.ServletInitialHandler.access $ 100(ServletInitialHandler.java:81)at io.undertow.servlet.handlers.ServletInitialHandler $ 2.call(ServletInitialHandler.java:138)at atio.undertow.servlet.handlers.ServletInitialHandler $ 2.call(ServletInitialHandler.java:135)at io.undertow.servlet.core.ServletRequestContextThreadSetupAction $ 1.call(ServletRequestContextThreadSetupAction.java:48)at io.undertow.servlet.core.ContextClassLoaderSetupAction $ 1 .call(ContextClassLoaderSetupAction.java:43)at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)at io.undertow.servlet.handlers.ServletInitialHandler.access $ 000(ServletInitialHandler.java:81)at io .undertow.servlet.handlers.ServletInitialHandler $ 1.handleRequest(ServletInitialHandler.java:104)at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336)at io.undertow.server.HttpServerExchange $ 1.run(HttpServerExchange.java) :830)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread . java:748)引起:org.hibernate.exc eption.SQLGrammarException:无法在org.hibernate的org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)中的org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:106)中提取ResultSet位于org.hibernate.engine.jdbc.internal.ResultSetReturnImpl的org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)中的.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111) org.hibernate.id.enhanced.SequenceStructure $ 1.getNextValue(SequenceStructure.java:95)中的.extract(ResultSetReturnImpl.java:69)org.hibernate.id.enhanced.PooledOptimizer.generate(PooledOptimizer.java:73)at org位于org.hibernate.jpa.event.internal.core.JpaPersistEventListener的org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:105)的.hibernate.id.enhanced.SequenceStyleGenerator.generate(SequenceStyleGenerator.java:452) .saveWithGe neratedId(JpaPersistEventListener.java:67)位于org.hibernate的org.hibernate.event.Deternal中的org.hibernate.event.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189)org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132)位于org.hibernate.internal.SessionImpl.persist(SessionImpl.java:768)的org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:783)的.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58) sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method . 在org.spri的com.sun.proxy上的org.springframework.orm.jpa.SharedEntityManagerCreator $ SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:305)调用(Method.java:498) . $ Proxy191.persist(未知来源) ngframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:490)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun . 在org.springframework.data.repository.core.support.RepositoryComposition $ RepositoryFragments.invoke(RepositoryComposition . )的java.lang.reflect.Method.invoke(Method.java:498)中反映.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) . java:377)org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:200)at org.springframework.data.repository.core.support.RepositoryFactorySupport $ ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java: 641)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)org.springframework.data.repository.core.support.RepositoryFactorySupport $ QueryExecutorMethodIntercept Or.doInvoke(RepositoryFactorySupport.java:605)org.springframework.data.repository.core.support.RepositoryFactorySupport $ QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:590)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation . java:185)at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:59)at atOrg.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)位于org.springframework.transaction.intercts.TransactionInterceptor.invoke的org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294) TransactionInterceptor.java:98)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)... 171个常见框架省略:org.postgresql.util.PSQLException:错误:关系“hibernate_sequence”不存在位置:17位于org.postgresql.core上的org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440) . v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)atg.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)at o org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)中的org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)中的rg.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:106)at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement) .java)org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:60)...省略了205个常用帧

更新1:

这里是 .

<property name="now" value="now()" dbms="h2"/>
<property name="now" value="current_timestamp" dbms="postgresql"/>

<changeSet id="00000000000000" author="jhipster">
    <createSequence sequenceName="hibernate_sequence" startValue="1000" incrementBy="50"/>
</changeSet>