Hello I try to to use in a `Kotlin` `SpringBoot` P...
# server
m
Hello I try to to use in a
Kotlin
SpringBoot
Project a
RestTemplate
as
Bean DSL
have some body any hint. What I’m missing…
n
what's the problem?
m
1.st Intellij say
Could not autowire. No beans of 'RestTemplate' type found.
and also my tests Failed. (default Spring Boot Test Class 🙂 from teh starter.io)
Copy code
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :test

KbootDemoApplicationTests > contextLoads() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:798
            Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException at DefaultListableBeanFactory.java:1777

1 test completed, 1 failed
When I call my Sample Endpoint it works 😞 I have little Client Server Sample
n
i’d suggest using the #spring channel
🙏 1
m
Thanks 🙂
👍 1
m
Also I’d suggest to not use Spring, for sanity 😉
👎 3
j
Why don't you use Feing?
m
Just lol for the thumbs down… If you think Spring isn’t one of the worst insane pieces of Java software is a good framework, I’m sorry for you 😂
👎 1
n
@Matteo Mirk i’m not sure this kind of comments is constructive in any way
m
Whatever… I didn’t offend anyone in the first place. Jeez…I didn’t know there were so many Spring fanboys! Have a nice day.
n
i don’t hide i like spring a lot because in my context, it’s super helpful we can discuss or not about the merits of a piece of technology but it should be done in a tone that invites a fruitful debate otherwise, better not start at all
👍 1
m
It wasn’t my intention to start such a debate…far from me! I just made a funny comment hinting the OP that he could be better considering some alternative, that’s it! Please re-read it, and cool down.