troyzhxu / bean-searcher

🔥🔥🔥 A read-only ORM focusing on advanced query, naturally supports joined tables, and avoids DTO/VO conversion, making it possible to realize complex query in one line of code !
https://bs.zhxu.cn
Apache License 2.0
1.31k stars 148 forks source link

spring boot 3執行時, bean searcher 會報錯 #82

Closed vt167098 closed 10 months ago

vt167098 commented 1 year ago

版本為spring boot 3.1.2, jdk版本 17, bean searcher 版本4.1.2

在spring boot 2.7的時候都很正常(使用bean searcher 3.8.2版本) 最近在測試sping boot 3, 發現有問題, 我是使用mybatis + druid的方式連線

`*** APPLICATION FAILED TO START


Description:

Field beanSearcher in com.vt.demo23.controller.FrontEndController required a bean of type 'cn.zhxu.bs.BeanSearcher' that could not be found.

The injection point has the following annotations:

Action:

Consider defining a bean of type 'cn.zhxu.bs.BeanSearcher' in your configuration.

`

我的寫法跟spring boot 2.7的寫法一致.

troyzhxu commented 10 months ago

请确认以下信息:

如果仍然有困难,可以现成的参考 SpringBoot 3.x 的集成案例:

vt167098 commented 10 months ago

spring boot 3.2.2 + bean-searcher 4.2.7,確認已經可以運作,沒有問題.