2017-05-30 64 views
0

=彈簧引導促動器的情況相比應用端口

之外的不同的端口上運行給禁止錯誤,同時訪問驅動器比使用定製彈簧安全配置應用端口不同的端口上運行的入門禁止錯誤。

application.properties file 

management.security.enabled=false 
management.context-path=/manage 
management.port=8085 

server.context-path=/lnhcverifyhcp 
server.port=8090 

春天引導版本 - 1.3.3.RELEASE

入門禁止有關訪問錯誤執行的URL

+0

你說過你使用自定義的Spring Security配置,但沒有提供任何細節。有一個公平的機會,這是問題所在 –

+0

我已經使用自定義配置 ,但我已經繞過執行器的安全驗證 http.authorizeRequests()。antMatchers(「/ manafe/info」)。permitAll() ; 它工作正常,如果運行在與服務器端口相同的端口,但如果在不同的端口上運行 獲取禁止的錯誤。 –

回答

0

我假設您在Spring Actuator中使用Spring Security。所以,配置逃生執行器出來的安全是:

endpoints: 
    health: 
    sensitive: false 

management: 
    security: 
    enabled: false 

希望這個幫助!