I don’t quite understand why you would want that. But I see two possible solutions: create two separate spring boot apps or create two application classes (one annotated with “EnableProcessApplication” and the other one not.
I don’t know how to prevent the engine from start based on spring profiles.
Maybe you should exclude in a few SpringConfiguration classes and use profiles for it. For example AConfiguration for profile test and BConfiguration for profile dev. And start app with profile