天天看點

Full authentication is required to access this resource Jhipster架構

原因

是賬号沒有登入進行通路接口出現的接口權限問題

解決

修改權限

消除通路此資源需要完全的身份驗證

修改 SecurityConfiguration 檔案

.antMatchers("/api/**").authenticated()
	.antMatchers("/management/health").permitAll()
           

1.第一個是接口

api/** 是全部接口的意思

2.第二個是授權

permitAll 允許全部通路