You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Boot Dashboard shows all Spring Boot projects, even ones that have no main method #2081
Describe the bug
Boot Dashboard doesn't seem to have a way to exclude projects that are not actually runnable applications (even with the "Hide local non-runnable apps" filter enabled).
I expect that a project that has no class with a main() method or annotated with @SpringBootApplication to not be shown in Boot Dashboard. Yet even with the filter enabled, I see all projects with any Spring Boot dependencies (even transitive) showing there. If I try to launch them, of course it asks me to select the Main type and shows a list of all dependency classes that might qualify.
While this might be technically correct according to someone's original intention of the filter, I argue that it's totally counterintuitive. It greatly reduces the usability of Boot Dashboard because it's littered with projects that are never intended to be launched.
I can't find another filter to achieve the desired result, other than name-pattern which is brittle.
To Reproduce
Import a multi-module maven Spring Boot project, with only a single module containing a main() method. You'll see all the modules listed in Boot Dashboard when only the actual Application module is expected.
The filter to "hide local non-runnable apps" has to decide somehow which project is "non-runnable". If the project sources do not include a main method, but instead a dependency contains a main method, the project should be shown in the dashboard, because you can run it via that main method (basically the case mentioned in the referenced issue).
The problem here - in case I understand this correctly - is that a project depending on Spring Boot automatically contains classes on the resolved classpath with a main method, e.g. SpringApplication. This - more or less - makes the filter pretty useless for those cases.
The question now is, how can we solve both cases? Reducing the filter again to project-local sources would re-introduce #1437.
Activity
martinlippert commentedon Nov 10, 2026
This is most likely related to #1437.
The filter to "hide local non-runnable apps" has to decide somehow which project is "non-runnable". If the project sources do not include a main method, but instead a dependency contains a main method, the project should be shown in the dashboard, because you can run it via that main method (basically the case mentioned in the referenced issue).
The problem here - in case I understand this correctly - is that a project depending on Spring Boot automatically contains classes on the resolved classpath with a main method, e.g.
SpringApplication. This - more or less - makes the filter pretty useless for those cases.The question now is, how can we solve both cases? Reducing the filter again to project-local sources would re-introduce #1437.