Spring-data-mongodb + playframework + guice - spring

I'm into using sprig data mongodb with the playframework application because of simplicity and high productivity spring-data has, but #Autowired doesn't work and i get [NullPointerException: null], i don't know how to manually wire it, and can't find a solution online, please can anyone help me with the situation?

Related

the spring boot oauth2 doc teaches deprecated annotation?

it's a confusing problem but suffered me several days.
Firstly, I got to know that the new spring security oauth2 is changed, then I come to learn:https://docs.spring.io/spring-security-oauth2-boot/docs/2.5.2/reference/html5/.
However, when I try to add the annotation #EnableAuthorizationServer to the "main method", the Intellij throws it's deprecated".
Then, I tried to check the version: springframework.boot:2.5.2 , spring-security-oauth2:2.5.1.RELEASE, spring-security-oauth2-autoconfigure:2.5.2.
It means all the dependencies are new, and the doc is new too.
Then why the Intellij says the annotation is deprecated? I just wanna follow the new trend. Please tell me what to do?
thanks a lot.
As the documentation to which you have linked states, the project is in maintenance mode. Where possible, it should not be used and the equivalent features in Spring Security 5.x should be used instead.
The deprecation message on EnableAuthorizationServer links to a migration guide. From there you can learn about the Spring Authorization Server project which you may want to use.

Spring Data JPA or spring hibernate which do i need to learn RN

from the above which should i learn or do I need to learn both then in which order
im new to spring framework (about few days )
Hibernate is a JPA (specification) implementation.
A good way to learn Hibernate is to read the book "Java Persistence in Action" by Manning. It has 400 pages but teaches you everything there is to know.
Spring Data JPA builds ON TOP of Hibernate/JPA.
If you don't know Hibernate, you WILL get lost sooner or later with Spring Data, even if it makes things easier at the beginning for you.
A good article to help you get an overview of Hibernate/JPA/Spring Data etc: https://www.marcobehler.com/guides/java-databases-jdbc-hibernate-spring-data

Trying to speed up spring-web endpoint json serialization (afterburner)

I am using Spring Boot 1.5.8 and spring-web 4.3.12. I have noticed that, when I make a request for data from one of our REST endpoints, more time is spent on data serialization than the rest of the operation. I have been looking into strategies to speed things up, and I learned about the Jackson Afterburner module. The spring documentation claims that I only need to create a #Bean in a #Configuration class and the ObjectMapper that is created will have that module registered. Unfortunately, after adding the Spring bean, the serialization performance remains unchanged. What am I doing wrong?
Also, if anyone has any other ideas about how to increase the json serialization performance in a Spring REST controller, I would be very interested in hearing about them.
Thanks in advance.
I have tried the Afterburner module, and I did not notice much (or really any) improvement in performance. Maybe Spring is already using it, or other, optimizations. After looking around a bit, I learned about Kryo, and that seems to help.
If nobody else posts a suggestion, I will have to accept my own answer, but I will wait for a bit.

Spring integration with ElasticSearch vs Elasticsearch Template

Right now i´m developing an app that should connect with elacticsearch, however there are some different`s points of view to get solution, so i´m wondering witch could be a better use Spring integration(int-http:outbound-gateway) or Spring-Data-ElasticSearch(ElasticsearchTemplate), please feel free to write about it, thanks

Batoo JPA, Spring and JodaTime

I've been checking out batoo JPA lately. I've managed to use it with Spring and it seems to work good with the standard JPA interface. Now I'm looking how to get JodaTime to get persisted transparently.
I know that I can write a converter but I was wondering if maybe guys from the batoo team done some work on this. I've cloned the source and grep-ed it through but with no luck.
Thank you for pointing out the issue.
As stated in the issue manager a snapshot has been released that should fix the issue.

Resources