Spring at StackOverflow

Welcome to our StackOverflow page, where we maintain a list of StackOverflow tags that our engineering team monitors and participates in. If you are a previous forum.spring.io user, please read the blog post about the change or visit the read-only archive.

Active questions on StackOverflow

0
votes
0answers
2 views

Spring Microservice not connecting to Eureka

I am trying to connect my microservice with Eureka. I have added annotation @EnableDiscoveryClient to the main class: @EnableDiscoveryClient @SpringBootApplication public class Application { pu
0
votes
1answers
8 views

Spring boot XmlBeanDefinitionReader not working properly

I am creating maven multi module having two sub modules. One is simple DAO layer which has databse repositories and other is spring boot app which is command line app. I am using mongodb and spring-da
0
votes
1answers
9 views

jsp is not rendering on requested uri

I am getting "welcome" on hit of localohst: instead of my welcome.jsp Here is my controller: @RestController public class WelcomeController { // inject via application.properties @Va
0
votes
0answers
11 views

Why Spring Boot 1.5.9.RELEASE starting on two ports by default?

I am using Spring Boot 1.5.9.RELEASE and it starts on two ports by default. Tomcat initialized with port(s): 8080 (http) 8090 (http) Tomcat started on port(s): 8080 (http) 8090 (http) I have tried
0
votes
2answers
66 views

spring boot app shutting down without error

I am running a spring boot application with mysql, web, jpa as dependencies. I have configured the application.properties file with the database properties. The log is attached for more details below:
22
votes
6answers
21841 views

Spring-boot with embedded Tomcat behind Apache proxy

We have a spring-boot/spring-mvc app with embedded Tomcat on a dedicated appserver behind an Apache SSL-proxy. The SSL-port on the proxyserver is 4433, forwarding to port 8080 on the appserver. So t
0
votes
0answers
7 views

Poroblem with soap client on Java 6

I have a following problem. I have a client sop-service on java. On the Jvm 1.8, the code works fine, on the JVM 1.6 server breaks the connection. Presumably server uses TLSv1.2, which Java 1.6 does
0
votes
0answers
8 views

Instantiating a hibernate Configuration throws error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException

I am fairly new to the hibernate framework and I'm creating a simple application with a Udemy course. I've continually been getting a 'java.lang.NoClassDefFoundError' on the following stack. It appear
0
votes
0answers
6 views

Spring Security catch RuntimeException

i've extended UsernamePasswordAuthenticationFilter, which contains method: successfulAuthentication-Method. I've override this Method. During of exectuion of overriden successfulAuthentication-metho
0
votes
0answers
12 views

How to re-send activation e mail in java spring

I already sending activation link and it is already working. But I do not know how to re send the link again my code below; private void sendActivationEmail(User user, String baseUrl) throws SignUpEx
0
votes
2answers
14 views

use two associations from a service to a Entitity in a class diagram is alowed?

I would like to know if is allow to use two associations in a class diagram: this is my example: thank you in advance for your support
0
votes
1answers
7 views

Thymeleaf submit ignores list of objects

Given a class looking like this: public class Foo { private List<Bar> bars = new ArrayList<>(); //getter and setter } Initialized with either an empty list, or with values adde
-1
votes
0answers
23 views

When to use event listener?

I am learning Spring and came across the event listner topic. I do not quite understand when shall we use event listener instead of a function call. Suppose I am writing a MVC web server application
0
votes
0answers
12 views

Spring boot batch - Running multiple batch jobs from schedule tasks causing concurrency issue

I have created three different batch jobs using spring boot + batch. When i try to run these jobs via scheduled tasks. At same time (with few seconds difference). I run into unexpected issues in Filer
0
votes
1answers
30 views

Why does spring application works in tomcat and jetty server and respond with 404 in jboss server?

I have a spring web application that works in tomcat and jetty server but when i deploy it in jboss server (7.1.1 version) there is an error 404. my configuration in web.xml is <?xml version
0
votes
0answers
7 views

Spring Cloud Stream @StreamListener Custom MappingJackson2MesageConverter

I have a custom ObjectMapper configured within my application which has custom modules for deserializing immutable types provided by Guava in Jackson. My problem is that I cannot seem to override the
-1
votes
1answers
22 views

Convert frequency to java.time.Period type

I am getting frequency in form of enum i.e. [ DAILY, WEEKLY, BI-WEEKLY, MONTHLY, BI-MONTHLY, ANNUALLY] and we need to convert that enum to frequency of java.time.Period type then how to convert BI-WEE
4
votes
2answers
10922 views

Configure spring to connect to mysql over ssl

I am connecting to MySQL over SSL from my Java application. I have configured MYSQL to support SSL and generated client certificates. I have imported server CA certificate and client certificate into
0
votes
0answers
18 views

Spring Boot Admin Client Authentication not working

I have a Spring 1.5.6 Webapp that i want to monitor with Spring Boot Admin I set everything up and with management.security.enabled=false everything works fine. Once I set it true it wont work.
1
votes
2answers
6284 views

How to configure spring boot application to use SSL/TLS over MySQL?

I set up SSL on my MySQL server. I generated few certicates for CA (ca.pem, ca-key.pem), for client (client-cert.pem, client-key.pem) and server (server-cert.pem and server-key.pem). In spring boot
5
votes
3answers
6282 views

Setting session timezone with spring jdbc oracle

I have a spring/jdbc/oracle 10g application. The Oracle server database timezone is set to GMT + 2 JVM timezone is GMT + 2 (even though it doesn't matter in my case). I have a stored procedure that p
11
votes
3answers
15060 views

spring jpa application.properties useSSL

I am trying to turn off ssl, to my local mysql database. But I cannot find the actual property in a spring application.properties file that would do this. my current file is: # =====================
1
votes
0answers
21 views

Securing a Spring boot api rest service

I have a spring boot api secured with spring basic security. I call the api from another application. So I currently have the password in plain text in the application.yml files of my api and also the
0
votes
0answers
15 views

LocalSessionFactoryBean can't map package in jar file Spring 4

The sessionFactory, can't map package <bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="dataSource" />
0
votes
0answers
4 views

How to add new row to jsp table with new form path

I have individual_rate_panel.jsp. Here I write form post method in this way: <table class="std-table" style="width: 100%;" id="rates"> <thead> <tr>
0
votes
0answers
9 views

Adding an authentication with SecurityContext.xml on Spring Boot

I can't add a page role with SecurityContext.xml. What Can I do for this? Worked push configuration with configuration class. But XML Configuration Not Works: My XML Configuration <?xml version=
0
votes
0answers
17 views

Set DEFAULT_MAX_TO_STRING_FIELDS in Spark 2.2.0

I want to change the value of the variable DEFAULT_MAX_TO_STRING_FIELDS in Spark 2.2.0 because I want to apply Machine Learning algorithms on data sets that have more than 25 features. The Apache Spar
0
votes
1answers
16 views

MongoDB reactive fails to send complete signals

I'm using spring webflux + mongodb. When a more complex method that merged multiple fluxes returned, I ran into the issue of the flux never completing (the http client being stuck waiting). In trying
0
votes
0answers
50 views

Object null after get bean

I have a dao object and inside the dao object I have the following code: When I get the bean MyDao the object is null. If I remove the @Transient annotation, it works but then fails on the updateUser
-1
votes
0answers
9 views

does the findAll method impact my batch if there is many data in database table

I am using spring batch to export data from database table to CSV file. my itemReader uses the findAll methods from the database table. Is that will causes any problem if my query select extracts man