how many profiles can we define in spring application? - spring-boot

Just for my curiosity, I wanted to know how many profiles we can define or how many profiles does spring boot support ?
I tried looking into official document of spring, but didn't find any clue. document

Related

Integrating Helidon with spring boot

Using rest service using Helidon
Have created app using Helidon and rest services are available from Helidon.
i want to use spring jdbc template,dao Autowire features with Helidon and searched lot didn't find any article first of all is it right way ? Please suggest docs links
Spring and Helidon are alternative frameworks indented for (mostly) the same purpose. They are two different worlds that will have problems coliding.
I don't think it's impossible to combine them, but it is at least impractical and bound to bring lots of problems like bean instantiation, classloader and so on with them.
I'd recommend you choose one of the two and stick with it.
Helidon is not Spring so does not support these features. It sounds like you want to write a Spring application instead.

Where is keycloak starter for Spring Boot?

I'd need to use keycloak in my Spring Boot project. I can see from the many tutorials that it should be available in the Spring Boot Initializr:
However I cannot find it (anymore?) neither with the Cloud app, nor with "spring init". Has it been removed as starter?
Thanks
Yes it has been removed, see this issue for more details. In general going to https://github.com/spring-io/start.spring.io and searching in issues could be an effective way to get some information about the evolution of the service in general.

Developing a simple CRUD App with Spring Boot and an existing Database

Is there a way to create a simple CRUD App using Spring Boot and an Existing Database?
You could look at Spring Roo. Its entire purpose is to allow rapid application generation. There is also support for reverse engineering an app from an existing database.
Version 2 will apparently also support Spring Boot, but I don't know if database reverse engineering already made it into v2. You could always try generating your application and adding Spring Boot later on.
I haven't much used it myself so unfortunately I can't offer you much guidance on its actual use - but you should be able to find some tutorials on Google, and StackOverflow contains several questions and answers on Spring Roo as well.

spring-integration-kafka annotation support & example

Although new to spring, I'm usually able to get started with a spring projects fairly well with annotations only. The official examples uses xml without mentioning where they will be placed etc.
Is there any sample project on reading from a kafka topic? Preferably by using annotation to set the zk & kafka configuration properties.
Please, take a look to the Spring Integration Java DSL project and here is a KafkaTests to demonstrate how to be for your case.
Plus here you are Josh Long's article: https://spring.io/blog/2015/04/15/using-apache-kafka-for-integration-and-data-processing-pipelines-with-spring

Spring Social and Spring Security using MongoDB

I want to make a full example integrating spring social and spring security using MongoDB , i need some examples , links or tuorials that help me to achieve that.
Thanks.
Official documentation is a right place to start. Both frameworks have default support for JDBC persistence. This support consist of two things : DB schema and couple of beans responsible for persistence. What you need to do is provide your own implementations for these beans and then configure both frameworks to use your beans. You need to implement following interfaces :
Spring Security : UserDetailsService
Spring Social : ConnectionRepository
Spring Social : UsersConnectionRepository
Check examples in the documentation, you'll find how to integrate your beans into frameworks. You will need additional beans if you want to use some features (like ACL in a case of Spring Security).
For samples check spring official samples : https://github.com/spring-projects/spring-social-samples
Spring-social 1.1.0 does not support MongoDB yet to store tokens there are only support of JDBC via (JdbcConnectionRepository, JdbcUsersConnectionRepository) and in memory via (InMemoryConnectionRepository, InMemoryUsersConnectionRepository)
If you want use MongoDB you must implements your own repositories, here is some ways to do that :
https://www.jiwhiz.com/#/blogs/50f4f033e4b04d4d302ba03a
https://github.com/exacode/spring-social-mongodb

Resources