Spring boot jhipster mvn包liquibase:update给出错误,但更新数据库

Spring boot jhipster mvn包liquibase:update给出错误,但更新数据库,spring-boot,jhipster,Spring Boot,Jhipster,我创建了一个基本的jhipster应用程序,但我选择了一个postgresql数据库。我正确地配置了它,从我的sts 3.9运行mvn liquibase:update后,我发现这些测试失败了。虽然命令成功地更新了我的数据库,但我关心的是错误列表 assertThatUserCanBeFoundByEmailIgnoreCase(com.jhipster.example.security.DomainUserDetailsServiceIntTest) Time elapsed: 0.0

我创建了一个基本的jhipster应用程序,但我选择了一个postgresql数据库。我正确地配置了它,从我的sts 3.9运行mvn liquibase:update后,我发现这些测试失败了。虽然命令成功地更新了我的数据库,但我关心的是错误列表

   assertThatUserCanBeFoundByEmailIgnoreCase(com.jhipster.example.security.DomainUserDetailsServiceIntTest)  Time elapsed: 0.001 sec  <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
    at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)
    at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
    at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:189)
    at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:131)
    at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)
    at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)



Running com.jhipster.example.security.SecurityUtilsUnitTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in com.jhipster.example.security.SecurityUtilsUnitTest
Running com.jhipster.example.security.jwt.JWTFilterTest
2018-06-12 10:15:52.900  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Invalid JWT token.
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.342 sec - in com.jhipster.example.security.jwt.JWTFilterTest
Running com.jhipster.example.security.jwt.TokenProviderTest
2018-06-12 10:15:54.528  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : JWT token compact of handler are invalid.
2018-06-12 10:15:54.531  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Expired JWT token.
2018-06-12 10:15:54.534  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Invalid JWT signature.
2018-06-12 10:15:54.539  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Invalid JWT token.
2018-06-12 10:15:54.542  INFO 9992 --- [           main] c.j.example.security.jwt.TokenProvider   : Unsupported JWT token.
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec - in com.jhipster.example.security.jwt.TokenProviderTest
Running com.jhipster.example.service.MailServiceIntTest

assertThatUserCanBeFoundByEmailIgnoreCase(com.jhipster.example.security.DomainUserDetailsServiceIntTest)经过的时间:0.001秒JWT问题是因为您正在运行测试(TokenProviderTest),以确保不接受坏的令牌。加载应用程序上下文错误怎么办?