NoSuchBeanDefinitionException in spring-bean's old version#807
NoSuchBeanDefinitionException in spring-bean's old version#807bruno-garcia merged 6 commits intogetsentry:masterfrom
Conversation
|
Thanks for raising this @Patrick0308 . |
|
Do you mean adding a spring boot test? @bruno-garcia |
|
We have some tests here |
|
@bruno-garcia I don't know how to test in different spring-bean versions. May be I use previous version in test? |
|
The versions we're testing are here: Did you experience errors with this one or a different? |
|
In a 1.5.3.RELEASE version of spring-boot-starter-parent, an error occurred on application startup. In |
|
|
|
Yeah, I've tested in my application on |
|
Would you please then try reverting our Just an FYI, So IMHO it still does make sense to support the 1.5.x release train and maybe even go back to 1.5.0 but we should also make sure we work with the 2.x train. Btw. to test our spring boot support with different versions of spring boot, we'd need to have an integration test maven module per spring boot version and run some shared tests within each such module. Maybe would be good to set this up at least for each minor version of spring boot (e.g. currently for 1.5.0, 2.0.0, 2.1.0 and 2.2.0)? |
metlos
left a comment
There was a problem hiding this comment.
Generally looks good but I would like to see a test for what happens if the user application provides a similarly configured list of helpers and callbacks.
That said I am not that experienced with Spring or Spring Boot so maybe I'm talking trash right now :)
|
@metlos Do you have some examples about testing application in different versions? |
I rather meant reverting our spring dep to a version where the error would exhibit itself and write a test that makes sure that it doesn't fall over anymore. But I can imagine this is quite hard given this change basically just changes how we instruct Spring to wire stuff together... |
|
Why this pr does't pass CI testing? Here is the error message. I found spring-boot-test-support-1.5.0.RELEASE in central maven repo. |
|
Huh, I recall someone on the twitter mentioning HTTP transport is being switched off on maven central... |
|
It took me a looong time to get back here but reading https://spring.io/blog/2017/01/30/spring-boot-1-5-1-released#what-happened-to-1-5-0 I assume 1.5.0 can't really be used and the minimum version of the 1.5.x should be 1.5.1. |
|
@metlos thanks very much. What I should do next? |
|
Thanks @Patrick0308 and @metlos |
fixed issue #806 NoSuchBeanDefinitionException.
@Autowired(required = false)doesn't work in spring-bean's old version.