If you don’t want to expose endpoints over JMX you can set the endpoints.jmx.enabled property to false:
endpoints.jmx.enabled
false
endpoints.jmx.enabled=false