問題タブ [spring-boot-2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
openshift - Jolokia エンドポイントは、オープン シフトでスプリング ブート アクチュエーターを介して公開されません。
がありcamel application which is running in spring boot 2
、キャメル ルートが で視覚化されhawtio
ます。とall actuator endpoints are exposed including jolokia endpoint
this application is completely working in local
local でアクチュエーター エンドポイントにアクセスしようとするとhttp://localhost:8080/actuator/
、他の 16 のエンドポイント (ヘルス、情報など) と共にエンドポイントの下に表示されます。
私は持っていますがdeployed the in same Openshift
、しようとするとaccess actuator endpoints in Openshift
見ることができましたonly 16 endpoints without jolokia endpoint
アプリケーション起動時のログインlocal
アプリケーション起動時のログインOpenshift
INFO : Registered '/actuator/jolokia' to jolokia-actuator-endpoint
ログにOpenshift
ないため、明らかに登録されていませんspring boot actuator
何か考えはありwhy jolokia is not exposed via spring boot actuator
ますか?
このため、hawtio
キャメル ルート (JMX) にアクセスできません。
spring-boot - Spring Boot 2 で、特定のユーザーだけにアクセスを許可するセキュリティ ルールを追加することはできますか?
Java 11 で Spring Boot 2 と Spring Security 11 を使用しています。API のみのアプリケーションを作成し、「ユーザー」に関連するエンドポイントを保護しようとしています...
ユーザー用にこの RestController があります...
ログインしているユーザーの ID が要求の ID と一致する場合に、GET および PUT エンドポイントにアクセスできるようにセキュリティを拡張したいと考えています。そのためのルールを HttpSecurity に追加することは可能ですか? または、全員がそれらのエンドポイントにアクセスできるようにしてから、REST メソッドに Java を追加して、ログインしているユーザーをチェックすることはできますか?