fix boot project
This commit is contained in:
parent
db77297fa1
commit
6fdd23bd3d
@ -1,21 +0,0 @@
|
|||||||
package org.baeldung.boot.monitor.jmx;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
import com.codahale.metrics.JmxReporter;
|
|
||||||
import com.codahale.metrics.MetricRegistry;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
public class MonitoringConfig {
|
|
||||||
@Autowired
|
|
||||||
private MetricRegistry registry;
|
|
||||||
|
|
||||||
@Bean
|
|
||||||
public JmxReporter jmxReporter() {
|
|
||||||
JmxReporter reporter = JmxReporter.forRegistry(registry).build();
|
|
||||||
reporter.start();
|
|
||||||
return reporter;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
INSERT INTO country (name) VALUES ('India');
|
|
||||||
INSERT INTO country (name) VALUES ('Brazil');
|
|
||||||
INSERT INTO country (name) VALUES ('USA');
|
|
||||||
INSERT INTO country (name) VALUES ('Italy');
|
|
||||||
COMMIT;
|
|
@ -1,5 +0,0 @@
|
|||||||
CREATE TABLE country (
|
|
||||||
id INTEGER NOT NULL AUTO_INCREMENT,
|
|
||||||
name VARCHAR(128) NOT NULL,
|
|
||||||
PRIMARY KEY (id)
|
|
||||||
);
|
|
Loading…
x
Reference in New Issue
Block a user