How to migrate existing Spring project to Spring Boot

前端 未结 1 1678
梦谈多话
梦谈多话 2021-02-19 10:46

I\'m trying to migrate existing Spring project to Spring Boot. In project already used Spring Data JPA/Hibernate and simple DAO with JDBC (PostgreSQL used). In few states I foun

1条回答
  •  别跟我提以往
    2021-02-19 11:04

    Problem solved: I fixed the dependency issues. Should use,

    @Configuration
    @EnableAutoConfiguration
    @ComponentScan
    @Import(Config.class)
    

    instead @SpringBootApplication annotation.
    Now the application is getting booted, but cannot find config file which is another story.

    0 讨论(0)
提交回复
热议问题