几小时后Spring Boot应用程序关闭

时间:2015-09-06 10:03:32

标签: spring

我的申请有问题。我在开始工作后在服务器VPS上运行它。但总是在一段时间后,服务器关闭。我不知道为什么,日志不说什么。

有关收市的资料发生在15.53

Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplication

使用参数-jar

运行应用程序
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.2.5.RELEASE)

2015-09-05 11:51:18.118  INFO 16204 --- [           main] com.drinkandfood.server.Application      : Starting Application v0.1.0 on vps196664.ovh.net with PID 16204 (/root/drinkfoodserver/target/drinkandfood.server-0.1.0.jar started by root in /root/drinkfoodserver/target)
2015-09-05 11:51:18.192  INFO 16204 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@8aef2b: startup date [Sat Sep 05 11:51:18 CEST 2015]; root of context hierarchy
2015-09-05 11:51:22.300  INFO 16204 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$7c501025] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2015-09-05 11:51:22.334  INFO 16204 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'transactionAttributeSource' of type [class org.springframework.transaction.annotation.AnnotationTransactionAttributeSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2015-09-05 11:51:22.349  INFO 16204 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'transactionInterceptor' of type [class org.springframework.transaction.interceptor.TransactionInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2015-09-05 11:51:22.361  INFO 16204 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.config.internalTransactionAdvisor' of type [class org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2015-09-05 11:51:23.498  INFO 16204 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2015-09-05 11:51:24.022  INFO 16204 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
2015-09-05 11:51:24.046  INFO 16204 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.0.23
2015-09-05 11:51:24.320  INFO 16204 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2015-09-05 11:51:24.320  INFO 16204 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 6131 ms
2015-09-05 11:51:24.865  INFO 16204 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean        : Mapping servlet: 'dispatcherServlet' to [/]
2015-09-05 11:51:24.881  INFO 16204 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean  : Mapping filter: 'characterEncodingFilter' to: [/*]
2015-09-05 11:55:32.158  INFO 16204 --- [ost-startStop-1] o.a.c.util.SessionIdGeneratorBase        : Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [247,196] milliseconds.
2015-09-05 11:55:33.299  INFO 16204 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default' 2015-09-05 11:55:33.368  INFO 16204 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
        name: default
        ...]
2015-09-05 11:55:33.565  INFO 16204 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {4.3.10.Final}
2015-09-05 11:55:33.568  INFO 16204 --- [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
2015-09-05 11:55:33.573  INFO 16204 --- [           main] org.hibernate.cfg.Environment            : HHH000021: Bytecode provider name : javassist
2015-09-05 11:55:34.194  INFO 16204 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
2015-09-05 11:55:34.696  INFO 16204 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
2015-09-05 11:55:35.009  INFO 16204 --- [           main] o.h.h.i.ast.ASTQueryTranslatorFactory    : HHH000397: Using ASTQueryTranslatorFactory
2015-09-05 11:55:35.501  INFO 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000227: Running hbm2ddl schema export
2015-09-05 11:55:35.516 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table product drop foreign key FK_jkpn0y1dute8nbjlx9rvec18
2015-09-05 11:55:35.516 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.product' doesn't exist
2015-09-05 11:55:35.517 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table product_category drop foreign key FK_ac25kv0aljr3ts4lux00s93yt
2015-09-05 11:55:35.517 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.product_category' doesn't exist
2015-09-05 11:55:35.517 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table product_category drop foreign key FK_cm5vajyq5tshew4w6xvutslrw
2015-09-05 11:55:35.517 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.product_category' doesn't exist
2015-09-05 11:55:35.517 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table restaurant drop foreign key FK_ld6c40vlgs1192pu8kw91021w
2015-09-05 11:55:35.518 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.restaurant' doesn't exist
2015-09-05 11:55:35.518 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table restaurant_products drop foreign key FK_hcv9mkoh1u2ccan9bnynfj5cm
2015-09-05 11:55:35.518 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.restaurant_products' doesn't exist
2015-09-05 11:55:35.519 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table restaurant_products drop foreign key FK_20q3pjlynyuygik57a5vxybd3
2015-09-05 11:55:35.519 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.restaurant_products' doesn't exist
2015-09-05 11:55:35.519 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000389: Unsuccessful: alter table user drop foreign key FK_qy1digd4jfeljpu058xaf3g8y
2015-09-05 11:55:35.519 ERROR 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : Table 'drinkfood.user' doesn't exist
2015-09-05 11:55:35.708  INFO 16204 --- [           main] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000230: Schema export complete
2015-09-05 11:55:36.965  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/list]}" onto public java.lang.String com.drinkandfood.server.WebController.ListController.showRestaurantPreferences(org.springframework.ui.Model)
2015-09-05 11:55:36.965  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/add_new_product],methods=[GET]}" onto public java.lang.String com.drinkandfood.server.WebController.WebNewProductController.addNewProductForm(org.springframework.ui.Model)
2015-09-05 11:55:36.965  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/new_product],methods=[POST]}" onto public java.lang.String com.drinkandfood.server.WebController.WebNewProductController.setNewProduct(com.drinkandfood.server.WebObject.WebProduct,org.springframework.ui.Model)
2015-09-05 11:55:36.966  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/product/findByPriceRange]}" onto java.util.List<com.drinkandfood.server.Entity.Product> com.drinkandfood.server.RestController.ProductController.findByPriceRange(java.lang.Long,java.lang.Double,java.lang.Double)
2015-09-05 11:55:36.966  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/category/all]}" onto public java.util.List<com.drinkandfood.server.Entity.Category> com.drinkandfood.server.RestController.CategoryController.getAll()
2015-09-05 11:55:36.967  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/getRestaurants],methods=[GET]}" onto public java.util.List<com.drinkandfood.server.Entity.Restaurant> com.drinkandfood.server.RestController.RestaurantController.getRestaurants()
2015-09-05 11:55:36.967  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/findRestaurant],methods=[GET]}" onto public java.util.List<com.drinkandfood.server.Entity.Restaurant> com.drinkandfood.server.RestController.RestaurantController.findRestaurant(java.lang.String)
2015-09-05 11:55:36.967  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/restaurant/find]}" onto java.util.List<com.drinkandfood.server.Entity.Restaurant> com.drinkandfood.server.RestController.RestaurantController.findByIds(java.lang.Long[])
2015-09-05 11:55:36.967  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/addNewProduct],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.drinkandfood.server.AndroidController.NewProduct> com.drinkandfood.server.RestController.NewProductController.get()
2015-09-05 11:55:36.968  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/addNewProduct],methods=[POST]}" onto public org.springframework.http.ResponseEntity<com.drinkandfood.server.AndroidController.NewProduct> com.drinkandfood.server.RestController.NewProductController.update(com.drinkandfood.server.AndroidController.NewProduct)
2015-09-05 11:55:36.983  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2015-09-05 11:55:36.983  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2015-09-05 11:55:37.041  INFO 16204 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2015-09-05 11:55:37.041  INFO 16204 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2015-09-05 11:55:37.058  INFO 16204 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/js/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2015-09-05 11:55:37.080  INFO 16204 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/fonts/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2015-09-05 11:55:37.080  INFO 16204 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/css/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2015-09-05 11:55:37.080  INFO 16204 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/images/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2015-09-05 11:55:37.997  INFO 16204 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@8aef2b: startup date [Sat Sep 05 11:51:18 CEST 2015]; root of context hierarchy
2015-09-05 11:55:39.908  INFO 16204 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2015-09-05 11:55:40.197  INFO 16204 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2015-09-05 11:55:40.961  INFO 16204 --- [           main] com.drinkandfood.server.Application      : Started Application in 263.496 seconds (JVM running for 264.837)
2015-09-05 11:57:04.566  INFO 16204 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring FrameworkServlet 'dispatcherServlet'
2015-09-05 11:57:04.567  INFO 16204 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization started
2015-09-05 11:57:04.597  INFO 16204 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : FrameworkServlet 'dispatcherServlet': initialization completed in 30 ms
2015-09-05 15:53:51.383  INFO 16204 --- [       Thread-2] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@8aef2b: startup date [Sat Sep 05 11:51:18 CEST 2015]; root of context hierarchy
2015-09-05 15:53:51.390  INFO 16204 --- [       Thread-2] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2015-09-05 15:53:51.400  INFO 16204 --- [       Thread-2] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2015-09-05 15:53:51.401  INFO 16204 --- [       Thread-2] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000227: Running hbm2ddl schema export
2015-09-05 15:53:51.554  INFO 16204 --- [       Thread-2] org.hibernate.tool.hbm2ddl.SchemaExport  : HHH000230: Schema export complete

0 个答案:

没有答案