-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade to Spring Boot 4.0.1 and Wicket 10.8.0 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,6 @@ | |
| import org.apache.wicket.pageStore.IPageStore; | ||
| import org.apache.wicket.protocol.http.WebApplication; | ||
| import org.springframework.beans.factory.annotation.Autowired; | ||
| import org.springframework.boot.autoconfigure.AutoConfigureAfter; | ||
| import org.springframework.boot.autoconfigure.cassandra.CassandraAutoConfiguration; | ||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||
| import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||
|
|
@@ -37,7 +35,6 @@ | |
| @ConditionalOnProperty(prefix = DataStoreCassandraProperties.PROPERTY_PREFIX, value = "enabled", matchIfMissing = true) | ||
| @ConditionalOnClass(name = "com.datastax.driver.core.Session", value = {CassandraDataStore.class}) | ||
| @EnableConfigurationProperties({DataStoreCassandraProperties.class}) | ||
| @AutoConfigureAfter(CassandraAutoConfiguration.class) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @copilot why is this removed?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The The |
||
| @RequiredArgsConstructor | ||
| public class DataStoreCassandraConfig implements WicketApplicationInitConfiguration { | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot why are exclusions removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exclusions were removed because those AutoConfiguration classes no longer exist in Spring Boot 4.0:
DataSourceAutoConfigurationJpaRepositoriesAutoConfigurationHibernateJpaAutoConfigurationThese classes were reorganized/moved in Spring Boot 3.x/4.x. The test class using this configuration (
WicketBaseTest) is currently@Disabled, so there's no functional impact.If you need to re-enable this test and still want to exclude database/JPA autoconfiguration, Spring Boot 4.0 uses a modular approach where data-related autoconfiguration is in separate modules. You could either:
@SpringBootTest(properties = {"spring.autoconfigure.exclude=...})with the new class names if they exist@MockBeanfor dependencies insteadWould you like me to investigate the new equivalent exclusions for Spring Boot 4.0, or is the current state (with the test disabled) acceptable?