Questo contenuto non è disponibile nella lingua selezionata.
Chapter 2. Accessing the Fuse Console for Spring Boot standalone
To access the Fuse Console for a standalone Fuse Spring Boot distribution:
Add hawtio-springboot to your Fuse application’s
pom.xmlfile dependencies.<dependency> <groupId>io.hawt</groupId> <artifactId>hawtio-springboot</artifactId> </dependency>
<dependency> <groupId>io.hawt</groupId> <artifactId>hawtio-springboot</artifactId> </dependency>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note that you do not need to specify the version because it is provided by the Maven BOM.
Edit the
src/main/resources/application.propertiesfile:Set the following properties to false:
-
endpoints.jolokia.sensitive -
endpoints.hawtio.sensitive -
hawtio.authenticationEnabled
-
Set the following properties to true:
-
endpoints.hawtio.enabled endpoints.jolokia.enabledYour application.properties settings should like similar to the following example:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteBy default, authentication for the Fuse Console on Spring Boot is disabled. Optionally, you can enable authentication by writing code specific to your Fuse Console distribution. Here is an example that you can use for guidance:
https://github.com/hawtio/hawtio/tree/master/examples/springboot-authentication
-
Run the Fuse application:
mvn spring-boot:run
mvn spring-boot:runCopy to Clipboard Copied! Toggle word wrap Toggle overflow To determine the port number for the Fuse Console URL, obtain the management.port value by looking at the value set in the
src/main/resources/application.propertiesfile. For example:management.port = 10001
management.port = 10001Copy to Clipboard Copied! Toggle word wrap Toggle overflow To open the Fuse Console in a browser, use the following URL syntax where nnnnn is the value of the management.port property:
http://localhost:nnnnn/hawtio/index.htmlFor example:
http://localhost:10001/hawtio/index.html