我有一個應用程序與JHipster 4.5.2版本生成,我想啓動它在服務器上(jboss或Tomcat),但我有一個空白頁面(因爲服務器端只是從我的理解推出) 當我啓動mvnw和紗線開始在命令提示符時,它的工作原理。 如何在服務器端啓動客戶端和服務器端的應用程序? 希望你明白我的問題。謝謝你的幫助。JHipster 4.5.2 - blank page
編輯: (有沒有錯誤,編譯時我使用PROD輪廓。)
Jboss的日誌:`22:54:59433 INFO [標準輸出(Server服務線程池 - 72)2017-06- 03 22:54:59.431 INFO 5920 --- [讀取池 - 72] cjxApplicationWebXml:在Fred 5920上啓動ApplicationWebXml(由Freddy在D:\ jboss-eap-6.4.7 \ bin中啓動)
22:54:59,453 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:54:59.452 DEBUG 5920 --- [讀取池 - 72] cjxApplicationWebXml:使用Spring Boot v1.5.2運行。 RELEASE,Spring v4.3.7.RELEASE
INFO [stdout](ServerService線程池 - 72)2017-06-03 22:54:59.453信息5920 --- [讀取池 - 72] cjxApplicationWebXml:以下配置文件是活動的: swgger,no-liquibase,dev
22:55:02,873 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:02.873 DEBUG 5920 --- [read Pool - 72] cjxconfig.AsyncConfiguration:創建異步任務執行程序
22:55:04,400 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:04.400 DEBUG 5920 --- [read Pool - 72] cjxconfig.MetricsConfiguration:註冊JVM測量儀
22:55:04,432 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:04.432 DEBUG 5920 --- [讀取池 - 72] cjxconfig.MetricsConfiguration:監視數據源
22:55:04,446 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:04.446 DEBUG 5920 --- [讀取池 - 72] cjxconfig.MetricsConfiguration:初始化指標JMX報告
22:55 :05,517 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:05.516 DEBUG 5920 --- [讀取池 - 72] cjxconfig.WebConfigurer:註冊CORS過濾器
22: 55:05,934 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:05.932 INFO 5920 --- [read P ool - 72] cjxconfig.WebConfigurer:Web應用程序配置,使用配置文件:swagger
22:55:05,934信息[stdout](ServerService線程池 - 72)2017-06-03 22:55:05.934 DEBUG 5920 --- [讀取池 - 72] cjxconfig.WebConfigurer:初始化度量註冊表
22:55:05,949 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:05.948調試5920 --- [讀取池-72] cjxconfig.WebConfigurer:註冊度量過濾器
22:55:05,950 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55: 05.950 DEBUG 5920 --- [讀取池 - 72] cjxconfig.WebConfigurer:註冊指標Servlet信息[stdout](ServerService線程池 - 72)2017-06-03 22:55:05.962 INFO 5920 --- [讀取池 - 72] c.j.x.config。WebConfigurer:完全配置的Web應用程序
22:55:06,379 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:06.379 DEBUG 5920 --- [讀取池 - 72] igjc liquibase.AsyncSpringLiquibase:禁用Liquibase
22:55:12,402 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:12.401 DEBUG 5920 --- [read Pool - 72] cjxconfig.social.SocialConfiguration:配置GoogleConnectionFactory
22:55:12,424 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:12.423 DEBUG 5920 --- [read Pool - 72] cjxconfig.social.SocialConfiguration:配置FacebookConnectionFactory
22:55:12,448 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:12.448 DEBUG 5920 --- [讀取池 - 72] cjxconfig.social.SocialConfiguration:配置TwitterConnectionFactory
22:55:17,814 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:17.813 DEBUG 5920 --- [讀取池 - 72] igjcapidoc.SwaggerConfiguration:啓動Swagger
22:55:17,953 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:17.953 DEBUG 5920 --- [讀取池 - 72] igjcapidoc.SwaggerConfiguration:在9毫秒開始Swagger
22:55:19,382 INFO [stdout](ServerService線程池 - 72)2017-06-03 22:55:19.381 INFO 5920 --- [讀取池 - 72] cjxApplicationWebXml:在23.086秒內啓動ApplicationWebXml JVM運行56.264)`
任何你不想將你的應用程序作爲可執行程序jar啓動的原因?這是最簡單的方式,並由JHipster團隊推薦。 –
你是否在根路徑('/')或上下文路徑下部署?你的瀏覽器的控制檯有錯誤嗎? –
@GaëlMarziou因爲它在我的企業中被問到。我必須生成戰爭並將其部署到jboss服務器上。 – Freddy92