Spring Boot makes it easy to create Spring-powered, production-grade applications and services with absolute minimum fuss. It takes an opinionated view of the Spring platform so that new and existing users can quickly get to the bits they need.

learn more…| top users | synonyms|spring boot jobs

0
votes
0answers
5 views

PCF Java Issue need advice

Need Help on the PCF. Struggling for more than a Month. Please Help.Kindly advice.1) 2018-02-17T17:46:17.46-0700 [APP/PROC/WEB/0] OUT [localhost-startStop-1] INFO 18-Feb-2018 00:46:17 org....
0
votes
0answers
5 views

Spring Boot entities not working

My spring-boot entity for Person-class is not working. I have a many-to-many relation with Hobby-class and that class is working. The predefined functions that don't have to be defined in the ...
0
votes
1answer
12 views

Can SpringBoot-Kafka application play both consumer and producer

In this app, we are consuming message processing it and then again forwarding it to other consumer, so can any one please share a possible way to do this,it'll be great if you can share some example ...
-1
votes
0answers
13 views

How to inject MockMvc in Spring Boot?

I am following this tutorial about integration test in Spring Boot: http://www.baeldung.com/spring-boot-testingWell, but when I try to Inject MockMvc I always get: Error creating bean with name '...
0
votes
1answer
24 views

How to return html on get method in Spring app?

I have maybe very ease question, I already using Spring mvc + jsp, but now I can not understand why the controller does not return the html file. Now I use Spring Boot with the Web module.@...
0
votes
1answer
8 views

Spring Boot, MongoDB: Fields in Embedded Documents getting Renamed

I have one main document:@Documentpublic class MainDocument {private String name;private String desc;private List<Nested> nestedList;-- More fields/methods --}and a ...
3
votes
2answers
2k views

How to initialize Cassandra keyspace and tables with Spring boot

I am using Cassandra as a datasource in my Spring boot application and would like to initialize the database before the application starts.Up to now what I have done is, I have defined a class "...
0
votes
0answers
23 views

Can't inject Service with Repository to view

Been struggling with this problem for hours now. Im getting a NullPointerException: at com.vaadincrud.TodoView.(TodoView.java:30) ~[classes/:na] I can access the NoteService from the TodoView but no ...
0
votes
2answers
57 views

How to setup mina2 hl7Codec in Spring Boot Application

Need help from experts. I am new to learn apcahe camel. I have configured camel to spring boot application. Now i want to add mina2 protocol. I have found below code for configuring mina2 for xml, but ...
1
vote
2answers
45 views

Session doesn't destroy on browser close event in spring

I'm using spring boot for developing a small app. My problem is, I need to show the First name of user when a user authenticated correctly. Every authentication (every login - entering username and ...
0
votes
0answers
7 views

Translate MongoDB query to Spring Data [duplicate]

Here is the query i would like to translte:db.user.aggregate([ {"$addFields":{ "sort_order":{"$sum":"$stats.posts"}}}, {"$sort":{"sort_order":-1}}, {"$project":{"sort_order":1}} ])...
15
votes
1answer
25k views

Transactional annotation not working in Spring Boot

@Transactional not working in Spring Boot.Application.java :@EnableTransactionManagement(proxyTargetClass=true)@SpringBootApplication(exclude={ErrorMvcAutoConfiguration.class})public class ...
3
votes
2answers
4k views

Cannot run powermockrule with SpringJUnit4ClassRunner in spring boot project

I have a spring boot project that needs to test with spring test runner(so that I can get the real application context) and mock the static method.@RunWith(SpringJUnit4ClassRunner.class)@...
96
votes
17answers
129k views

org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

I am trying run a spring-boot application which uses hibernate via spring-jpa, but i am getting this error:Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null ...
0
votes
0answers
5 views

Vaadin 8 Spring Boot QuickTickets Dashboard with Spring MVC

I'm trying to adapt Vaadin Spring Boot QuickTickets Dashboard example with my project needs. Everything is working fine except I'm unable to access another (not Vaadin UI) URLs. For example, I have ...
0
votes
1answer
18 views

Angular 2, Spring Boot, JPA, Hibernate or PHP Angular 2, MYSQL

I am doing my final year project at Monash, and below is the technical issue i am having currently. I am planing to develop e- learning solution which can expose and consume API and 3 rd party APIs. ...
0
votes
2answers
32 views

How to print to console in Spring Boot Web Application

Coming from a Node background, what is the equivalent of console.log() in spring boot?For example I'd like to see in my console the job info in the following method.@RequestMapping(value="...
0
votes
0answers
10 views

Spring boot validation with Database

I have a requirement which need to do a custom validation with bean . The validated metadata can be received from Oracle DB. so based on the DB metadata I want to make bean properties as optional or ...
1
vote
1answer
40 views

How do I create(post) a new entity that has a relationship with current user through a Thymeleaf form?

I am new to Spring. I am trying to create a new subject through a Thymeleaf form. User and subject have a one to many relationship. I want to add the created subject to the current user. When I try ...
1
vote
0answers
11 views

Distributed configurations that differs by instance

I have a design question I would like different ideas or optimal solutions for. If I have a single application that needs to be deployed across 100-1000's of different computes, with the goal of ...
-1
votes
1answer
14 views

Filter results from QueryDSL search

I'm using QueryDSL as part of Spring Data Rest to search entities from our API. Is it possible to somehow filter the search API, so that by default it won't find for example Car entities that are "...
0
votes
0answers
22 views

Correct and complete configuration for Spring Boot 1.5.x for Hibernate 5

About Spring Boot for the 1.5.10.RELEASE version.It works internally around with Hibernate for version 5.0.12.FinalWith the purpose to avoid the following error message:required a bean of type '...
-2
votes
0answers
30 views

Java easy configuration libary [on hold]

I am currently breaking down a single Java project for a desktop application into 6 different maven projects to allow them to be used independently. I'm looking for a Java library that will allow me ...
0
votes
0answers
9 views

Autowire ObjectMapper in Springboot application

I need to use default ObjectMapper inside my Spring-boot application as a singleton instance. Can I simply @autowire the ObjectMapper(Which instance created by default in Spring-boot application) ...
1
vote
5answers
75 views
+50

Set property with wiremock random port in spring boot test

I have a Spring Boot test that uses wiremock to mock an external service. In order to avoid conflicts with parallel builds I don't want to set a fixed port number for wiremock and would like to rely ...
1
vote
1answer
18 views

Using @WebFluxTest to test RouterFunction

I've got a router function that I want to test using spock. It looks like this@Configurationpublic class WebConfig {/*** Router function.* @return string*/@Bean...
0
votes
0answers
13 views

Spring boot RestTemplate and status 400 bad request error after some requests

Has anyone had a problem using RestTemplate and after execute many request? around 2000 request. I'm try to consume a api from my Spring boot app, but after some time I get the 400 bad request error...
0
votes
1answer
14 views

Thymeleaf - Displaying a button after every two items in a list

brand new to thymeleaf. Below I have a table that in one column displays all the names (strings) in a list, and in the other column if the iterator is even then it displays a button.<...
1
vote
1answer
16 views

Jodas LocalDateTime with Spring Data and Couchbase has no timezone

I wanna persistant an object with LocalDateTime fields with spring data and a couchbase behind in a spring boot app.Here are the fieldmapping:@Fieldprivate LocalDateTime start;@Fieldprivate ...
3
votes
3answers
2k views

spring-cloud random port not registered to Eureka

I'm trying to get my microservices to come up on random ports. If I specify server.port: 0 in the service bootstrap.yml as suggested in Spring Cloud app doesn't register correct port to Eureka I ...
1
vote
0answers
21 views

Spring Boot : Having a custom annotation on spring rest controller class causing error in identifying handler mapping

I am using a custom annotation called @Toggle on top of a rest controller class in spring boot to intercept the handlerType to block rest calls.See below code snippet:@RestController@Toggle(...
0
votes
0answers
24 views

MongoDB sort based on embedded document [duplicate]

Here is my document's code:@Documentpublic class User {@Idprivate String id;private String field1;private String field2;private List<UserModeStats> stats;}public ...
0
votes
1answer
21 views

Can't test authenticate-required method in controller Spring-boot

Problem: when i try testing authenticate-required method(with MockUser) it's return 403 error, i missing something, a try several approach, but they does't work. I don't understand why this happening ...
0
votes
1answer
41 views

Spring boot autowiring giving null in configuration class

I am trying to autowire one class in Configuration class like below:@Configurationpublic class GemfireConfig {@Autowiredprivate CloudCacheDataLoader loader;@Bean(name="...
-2
votes
0answers
17 views

How to use java.time.LocalDateTime togehter with angular 5 [duplicate]

I have Spring-Boot backend application and an Angular 5 Frontend communicating via Rest.Error message when calling the post resource....DefaultHandlerExceptionResolver : Failed to read HTTP ...
0
votes
0answers
7 views

Avoid Deadlock with MySQL ON DUPLICATE KEY UPDATE Spring JDBC

I am having some trouble avoiding deadlocking when doing an "upsert" via Spring Boot/JPA and MySQL. I am calling the method in my service layer asynchronously so it is possible that a single request ...
0
votes
1answer
31 views

How can I handle the most basic user auth in Spring Boot?

I've implemented really basic user authentication before - generate a session cookie when logging in, and when the user loads a page with authentication just check the cookie.However, the complexity ...
0
votes
0answers
8 views

Generate Table for each file upload?

How can generate table and insert data for each file upload, the user can upload different format (JSON file , XML, EXCEL), also i don't know the format files ex . number headers, There are general ...
-2
votes
0answers
25 views

“unknown operator: $id” error occurs when findByUserId(ObjectId userId) in spring-boot-starter-data-mongodb

//My JPA Repository Interface@RepositoryRestResource(path="storeBookmark")public interface StoreBookmarkRepository extends MongoRepository<StoreHistory, String> {Page<StoreHistory&...
0
votes
2answers
22 views

Can't use an access token in Spring OAuth2

I got access and refresh tokens from my Spring Boot app: curl -X POST -d "client_id=clientIdPassword&grant_type=password&username=test@gmail.com&password=123@Qwerty" -H "Authorization: ...
0
votes
0answers
12 views

Deploy an SSL enabled Java SpringBoot war to External Tomcat Server

I have a spring boot application, which is an SSL enabled one, I can access it through localhost. "https://localhost:8443/showPage" like this. For localhost I created SSL certificate and gave the ...
10
votes
5answers
43k views

How add Static Web Content in Spring-boot

I am trying to add static web content in a spring-boot server using the info hereI have tried adding the .js and .css files I need in the several Folders that the previous link says but it doesn't ...
1
vote
1answer
18 views

SpringBoot :Failed to read HTTP message

Service Class - package org.sameer.learnSpringBoot.topic;import java.util.ArrayList;import java.util.Arrays;import java.util.List;import org.springframework.stereotype.Service;@Service...
19
votes
6answers
13k views

Where place static css file in a spring-boot project

In my current spring-boot project, my views have this line:<link href="http://stackoverflow.com.mevn.net/signin.css" rel="stylesheet"/>to reference a static css file. When I run the project, and access one of the views which ...
3
votes
3answers
11k views

How can I serve static html from spring boot?

I ran the spring-boot-sample-web-static project from here, made this alteration to the pom<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-...
37
votes
5answers
53k views

Serving static web resources in Spring Boot & Spring Security application

I am trying to develop Spring Boot web application and securing it using Spring security java configuration.After placing my static web resources in 'src/main/resources/public' as advised here in ...
0
votes
1answer
21 views

mapping list source to target

I have an object organization that contains a contact objects list. The conacts list exists already in the database.To test with postman, when i need to add an organization i have to add the list ...
0
votes
1answer
23 views

Instantiating server in Spring Framework 5 and Spring Boot 2

I am using Spring Boot 2 just to try some reactive programming with Spring 5. I created some standard MVC controller.@RestController@RequestMapping("/judge/rest")public class BasicController {...
1
vote
1answer
38 views
+50

SpringBoot app. accessing 2 DataSources using JdbcTemplate

I have a SpringBoot app. that has to access to different datasources to export data from 1 to anotherThis is how my persistenceConfig looks likepublic class PersistenceConfig {@Bean...
1
vote
1answer
18 views

Is it possible to fail fast Spring tests if the application cannot start?

I have this base test class in one Spring Boot module:@ActiveProfiles("test")@SpringBootTest(classes={WebServiceApplication.class}, webEnvironment=SpringBootTest.WebEnvironment.DEFINED_PORT)...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,