0
で展開jhipsterモノリシックアプリ私は以下V4.13.0 jhipsterオプション付きjhipsterモノリシックアプリ生成:私は、JDBCコンテンツを除いて、アプリケーションprod.ymlを変更しませんでしたガット401エラー生産プロファイル
>Monolithic
> Do not use Jhipster Registry
> authentication (stateless, with a token)
> MySQL in production, H2 in-memory in development
> ehcache
> Gradle
> Angular 5
> Do not enable SASS
> Do not enable i18n
> No testing frameworks
> Do not install other generators
を。 と私の角度envが
Angular CLI: 1.6.0
Node: 9.3.0
OS: linux x64
Angular: 5.1.0
パッケージ以下のJHガイド
./gradlew -Pprod clean bootRepackage
と
build/libs/xx-0.0.1-SNAPSHOT.war
----------------------------------------------------------
Application 'xx' is running! Access URLs:
Local: http://localhost:8080
External: http://127.0.0.1:8080
Profile(s): [prod]
----------------------------------------------------------
によって運営されていますが、私はhttp://localhost:8080 により、ブラウザによって要求したときには、
o.z.p.spring.web.advice.AdviceTrait : Unauthorized: Full authentication is required to access this resource
を得ました
ブラウザ側のエラーは次のとおりです。
Request URL:http://localhost:8080/api/account
Request Method:GET
Status Code:401 Unauthorized
Remote Address:[::1]:8080
Referrer Policy:no-referrer-when-downgrade
おかげで誰とどんな助けを事前!
アカウントあなたは、ノードのLTSバージョンを使用する必要がありますお勧めします。 –