mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Update default JMX name used by Maven plugin
Closes gh-3124
This commit is contained in:
parent
5defa42436
commit
f87b2be2f9
@ -31,7 +31,7 @@ public class SampleApplication {
|
||||
public static void main(String[] args) throws Exception {
|
||||
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
|
||||
ObjectName name = new ObjectName(
|
||||
"org.springframework.boot:type=SpringApplicationAdmin,name=springApplicationAdmin");
|
||||
"org.springframework.boot:type=Admin,name=SpringApplication");
|
||||
SpringApplicationAdmin mbean = new SpringApplicationAdmin();
|
||||
mbs.registerMBean(mbean, name);
|
||||
|
||||
|
@ -30,7 +30,7 @@ public class SampleApplication {
|
||||
public static void main(String[] args) throws Exception {
|
||||
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
|
||||
ObjectName name = new ObjectName(
|
||||
"org.springframework.boot:type=SpringApplicationAdmin,name=springApplicationAdmin");
|
||||
"org.springframework.boot:type=Admin,name=SpringApplication");
|
||||
SpringApplicationAdmin mbean = new SpringApplicationAdmin();
|
||||
mbs.registerMBean(mbean, name);
|
||||
|
||||
|
@ -40,7 +40,7 @@ import org.apache.maven.plugin.MojoExecutionException;
|
||||
class SpringApplicationAdminClient {
|
||||
|
||||
// Note: see SpringApplicationAdminJmxAutoConfiguration
|
||||
static final String DEFAULT_OBJECT_NAME = "org.springframework.boot:type=SpringApplicationAdmin,name=springApplicationAdmin";
|
||||
static final String DEFAULT_OBJECT_NAME = "org.springframework.boot:type=Admin,name=SpringApplication";
|
||||
|
||||
private final MBeanServerConnection connection;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user