As per the my project requirement , i am going to migration spring boot application from springboot 2.7.6 to 3.0.0 version.

I have modified the below changes.

1) Changed the java version from java 11 to 17. 2) i have modifed the spring boot starter parent version from 2.7.6 to 3.0.0 version

I am able to build the application ,While starting the server getting the issue as below.

Error : Caused by: java.lang.ClassNotFoundException : org.springframework.beans.factory.aot.BeanRegistrationExcludeFilter

Comment From: nagaraju1692

Please let me know, If need any more details on this.

Comment From: wilkinsona

org.springframework.beans.factory.aot.BeanRegistrationExcludeFilter is a new interface that was introduced in Spring Framework 6. I suspect that your Spring Boot upgrade is incomplete and some or all of your Spring Framework dependencies are still using 5.3.x.

If this isn't the case, all of your Spring Framework dependencies are using 6.0.x, and you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem and we can re-open the issue. You can share a sample with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

Comment From: nagaraju1692

Yes.. You are the rite, few jars not changed to 6.x. Now i have changed the all jars to 6.X, But while starting the application getting error as below.

Issue Description:: APPLICATION FAILED TO START ※ネバネネネぶぶぶぶぶぶぶぶ※メススメネススメポポポン

Description:
Parameter 0 of constructor in jp.co.metlife.mis.service.EventLogService required a bean of type 'jp.co.metlife.mis.repository.EventLogRepository' that could not be found
The injection point has the following annotations:
- @org-springframework.beans. factory.annotation. Autowired(required-true)
Action:
Consider defining a bean of type "jp.co-metlife.mis.repository-EventLogRepository' in your configuration. 

Service Class:

public class EventLogService {

private final EventLogRepository eventLogRepository;

private static final String COSMOS DB_SAVE ERROR MESSAGE - "Error while saving event log in Cosmos DB";

private static final Logger logger =Logger. in(EventLogService.class);

public EventLogService (EventLogRepository eventLogRepository) {

this .eventLogRepository =eventLogRepository;
}

public void logEvent (EventName eventName, EventStatus eventStatus){
saveEvent (eventStatus,
new EventLog(eventName-getDescription(), eventStatus • getDescription()));

DAO Class:

import com.azure. spring. data. cosmos. repository.CosmosRepository;
import jp.co.metlife.mis.entity. EventLog;
import org-springframework.data.repository .CrudRepository:
import org. springframework. stereotype. Repository

@Repository
public interface EventLogRepository extends CrudRepository<EventLog, String>, CosmosRepository<EventLog, String>{


}