Spring Boot Parent Version to use in SCDF Processor Modules - spring-cloud-dataflow

We are developing projects on SCDF with kafka release version 2.4.1 for dataflow and 2.3.1 for skipper. I have a cloud stream application which works fine when unit tested in my IDE. but when i register as processor, i do not see any activity on the logs for this specific app in my Stream.
Currently using Boot 2.2.5 with Hoxton.SR3.
But the app works fine when I go to spring boot version 2.1.4. The reason I went to spring boot 2.1.4 was that the sample apps on this URL use 2.1.4
So if there is a documentation to let know which spring boot versions to use for an SCDF release it would help.

Spring Cloud Data Flow 2.4.1.RELEASES uses Spring Boot 2.2.4.RELEASE.
To know which version of Spring Boot is used in SCDF, you can see the release notes of Spring Cloud Data Flow. For instance, 2.4.1.RELEASE info is here

Related

Stream apps not using the buildpack provided in SCDF server environment variable (SCDF ver 2.1.2)

Recently, I upgraded from SCDF 1.7.3 to SCDF 2.1.2 for cloud foundry. Also, I am using skipper (I have to with 2.x). There are two main problems I am facing:-
Buildpack given as a property in the SCDF server environment is not being used to deploy stream applications. Following is the env key that I am using:-
SPRING_CLOUD_DATAFLOW_STREAM_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[xxx]_DEPLOYMENT_BUILDPACK. This has no effect at all.
Even though I set SPRING_CLOUD_DATAFLOW_STREAM_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[xxx]_DEPLOYMENT_ENABLE_RANDOM_APP_NAME_PREFIX to false skipper still generates random prefix for these applications.
I am not sure what I am doing wrong. Any advice will be of great help.
There are no stream platform properties with the prefix SPRING_CLOUD_DATAFLOW_STREAM_PLATFORM_CLOUDFOUNDRY in Spring Cloud Data Flow as the stream deployments are managed by Spring Cloud Skipper. Hence, you need to use the Skipper properties for stream deployment-related configurations.
The correct properties to use in this case are:
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[xxx]_DEPLOYMENT_ENABLERANDOMAPPNAMEPREFIX: false
SPRING_CLOUD_SKIPPER_SERVER_PLATFORM_CLOUDFOUNDRY_ACCOUNTS[xxx]_DEPLOYMENT_BUILDPACK:

JavaMelody and Spring Security

I have been developing a web app using Spring Boot and Spring Security among other things.
Everything was working well till I integrated with JavaMelody. Now, every REST API call annotated with #PreAuthorize is giving a HTTP status 404.
How can I configure JavaMelody for working with Spring Security? I followed the official guide to integrate JavaMelody in a Spring Boot app (https://github.com/javamelody/javamelody/wiki/UserGuideAdvanced#spring-boot-app) and so JavaMelody is working, but... I did not find any info about my situation.
Updated Spring Boot to 1.4.1 and now it is working.

Spring security not working with Grails project on JBoss Application Server

I have a big(multiple custom plugin based) Grails project, which runs perfectly fine on Tomcat server.
Now for a new customer we need to deploy it on JBoss Application server. It seems to deploy fine without any error but when I try to login on the first page which is implemented using Spring Security plugin. It does not log me in. I have tried going to a valid URL to check if its a problem of redirecting but it is not the case.
Please note it is not showing any error on the log. And since it is not properly executable in development environment so each time I need to build a WAR file to test it.
Grails version: 2.4.4
Spring security version: ':spring-security-core:2.0-RC4'
JBoss version: wildfly-9.0.2.Final
I tried some setups, and they all worked as a simple new project.
I used grails 2.4.4 and spring-security 2.0-RC4.
Here are a few things you could try:
Use latest spring-security version 2.0.0
compile "org.grails.plugins:spring-security-core:2.0.0"
Add jboss plugin and generate deployment xmls (this is needed for grails 2.5.4)
build ':jbossas:1.0'
$grails generate-boss-deploy 6
Create a brand new Wildfly install and deploy your app.
I can only think about a infrastructure problem, since I got no problem with the same setup. I running on Mac, with java 8 and Wildfly 9.0.2 final. Tested grails 2.4.4 and 2.5.4, spring security 2.0-RC4 and 2.0.0.
Best,
Eder

Spring Security and WebLogic 12c security realm

I have Spring Boot beased web application using Spring Security 4.0.2 for authentication. My app deployed to WebLogic 12c with configured security realm.
I want to configure Spring Security authorization through WebLogic security realm.
I tried finding in net but unable to get any working and actual samples which explains the Weblogic/Spring-Sec working together.
I need Spring Security java configuration sample for WebLogic security realm.
Can anyone help me with this issue?

Spring 3.1 Web services working example

Please suggest me with some useful links that have step by step spring web services sample examples implementation. Do I need to install some plugin in Spring Tool Suite.
As said by #evandongen, Spring 3.1 features REST web services. SOAP web services can be implemented with Spring-WS, which currently is in version 2.1.3. The Spring-WS manual has a tutorial which shows you step-by-step how to implement a SOAP web service.

Resources