Please, see this: https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-structuring-your-code.html
Ok, it's not clear we should keep the same package structure with multi-modules maven project.
Spring Boot Reference Guide suggest us a typical layout:
com
+- example
+- myapplication
+- Application.java