Skip to content

Generated application won't execute in default pacakage #255

@RobertOttesen

Description

@RobertOttesen

Describe the bug

If no javaPackage parameter is provided, the Main Application class is generated in the default/root package. Spring Boot will not start the application with the following warning:

** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

How to Reproduce

Generate any main application in the root package.

Expected behavior

Generate the main application in a default package other than the root package. Maybe generate in com.asyncapi.

Metadata

Metadata

Labels

bugSomething isn't workingstale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions