https://github.com/spring-projects/spring-boot/blob/v3.4.2/spring-boot-project/spring-boot-docs/src/docs/antora/modules/tutorial/pages/first-application/index.adoc
run a simple demo project step by step with the doc below, a error occur:
java.lang.ClassNotFoundException:org.springframework.dao.DataAccessException
The #1839 tell me that should not put main method in the default package. maybe we should update the doc?
Comment From: snicoll
Thanks for the report. Two things are going on here
- We were supposed to have a
com.examplepackage but it looks like it's gone in recent versions. Perhaps a regression of the move to Antora? - In all cases we instruct the users to create a source file in
src/main/java/MyApplication.javawhich is wrong given the package statement.
Comment From: bclozel
This rings a bell indeed.
https://github.com/spring-projects/spring-boot/issues/34513
Comment From: mhalbritter
Point 2 from @snicoll's comment is resolved by #43965.
Comment From: wilkinsona
For point 1 above, there are a couple of problems:
- A block-level
chomp_package_replacementattribute is ignored include-codedoes not transfer thechomp_package_replacementattribute to the blocks that it creates.
Both of these will have to be addressed in https://github.com/spring-io/asciidoctor-extensions. I'm working on that now.
Comment From: wilkinsona
This is now blocked on:
- https://github.com/spring-io/asciidoctor-extensions/pull/24
- https://github.com/spring-io/asciidoctor-extensions/pull/25
Comment From: philwebb