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.
0
votes
1answer
4 views
How to configure Spring Security OAuth 2.0 client store to database
I found a tutorial about Spring REST Service OAuth on https://github.com/royclarkson/spring-rest-service-oauth
But I wonder how to configure client stored to database, so I can manage easily.
In the ...
0
votes
0answers
5 views
spring boot and angularJs example to deal with authentication using a mysql database
I'm devoloping an application using Spring Boot , Spring Data and Angular JS , I'm looking for a good tutorial to help me deal with authentication with spring security (it's my first time to use it ) ...
0
votes
1answer
11 views
POSTing data with many to one relationship using Thymeleaf
I have a simple model class Product which exhibits a many to one relationship with ProductCategory:
Product class:
@Entity
@Table(name="product")
public class Product {
@Id
...
0
votes
0answers
8 views
Liquibase 3.3.2 is failing with exception ORA-00955: name is already used by an existing object
I am using Liquibase as part of Spring boot program.
Earlier we were have normal Java Web application and we used to run the Liquibase manually with version liquibase-3.0.2.
Now as part of ...
0
votes
1answer
6 views
“Update Resources” in IntelliJ deletes updated files from target directory
Short version
When I change resources in my app, then attempt to hot-deploy them, the files are deleted instead of updated from the target/ directory and I don't understand why.
Long version
I have ...
-1
votes
0answers
8 views
deploying spring-boot application to tomcat port redirection issue
I am deploying a war file generated from a spring-boot application to a tomcat instance.
The weird thing is that the tomcat instance is running on port 8084, however, when I go to ...
0
votes
1answer
7 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 ...
0
votes
0answers
18 views
Could not initialize proxy - no Session spring boot and javafx
I'm using Spring Boot and Javafx.
Yesterday i found this https://github.com/thomasdarimont/spring-labs/tree/master/spring-boot-javafx and add only Spring JPA to my pom.xml and configuration to ...
0
votes
0answers
8 views
Spring boot - parachute is non existent error
I use spring boot 1.1.6 in our application. Its running for a while without any issues and started throwing the following error all of sudden.
SEVERE:Memory usage is low, parachute is non existent, ...
1
vote
2answers
20 views
Serializing Joda DateTime with Jackson and Spring
I am having problems consistently serializing and deserializing a Joda DateTime from java to json and back again using Spring Boot and Jackson-databind 2.5.2. My pom.xml looks like this.
...
0
votes
1answer
23 views
Problems with Spring MVC 4 REST security
I am having real difficulty adding security to my REST API and I am wondering if someone can help here. I have a set of Model, Controller and DAO classes in order to add, edit and delete customers ...
0
votes
0answers
7 views
Spring-Boot client authentication configuration.
First off, I'm new to Spring-Boot and SSL in general, but I've spent several days researching and am basically trying to get a simple Spring-Boot application configured with Client Authentication.
...
0
votes
0answers
8 views
RestTemplate HttpMessageConverter not found
I am getting this exception when i am trying to call Rest Service. Any ideas?
org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found ...
0
votes
2answers
30 views
How to do Multiple URL Mapping (aliases) in Spring Boot
In specific
I want to do Multiple URL Mapping (in other words aliases) in spring boot
In Detail
In my spring boot application
Customer Controller class has mapped primarily to the /customer URL as ...
1
vote
0answers
19 views
Mapping conflict when deploying with spring boot Jersey starter deployed as WAR
We're using Spring Boot with its Jersey Starter and deploy it as a WAR, programmatically deployed into another application's embedded Tomcat.
After our application startup, in some environments, a ...
0
votes
1answer
23 views
Spring Boot JPA : Autowired JPA repository is null
I'm programming a lib for the services / DAOs layer, trying to use Spring BOOT. I want to use JPA repositories, and will probably need to use JDBC as well.
So, I followed this tutorial, modifying it ...
0
votes
1answer
17 views
Artifact not found during install task with Gradle, Spring Boot plugin and Nexus
On a Gradle project using Spring Boot plugin, and Nexus repo manager, I encounter an ArtifactNotFoundException during install task.
To give some more explanations, as explained in thread Unable to ...
1
vote
2answers
29 views
Subscribe to Spring Metrics channel
So according to the documents of Spring it will publish metrics on a REST endpoint and a message channel.
The REST endpoint works fine as I get the expected result. However I would like to handle ...
0
votes
1answer
38 views
DELETE method not supported angularsjs springboot rest
i'm using spring boot (backend) and angulars js (frontend) and the communication between the two frond with restful web service .
there is my rest service :
@RestController
...
0
votes
0answers
17 views
spring actuator increases the metric counter.status.200.{my endpoint} even if the endpoint returns a 500
I've developed my first rest service with Spring Boot, Spring MVC Spring Actuator using embedded tomcat 8.
For some reason, when the endpoint fails due to an exception which is not caught, the ...
0
votes
1answer
21 views
Spring Data CrudRepository and Transactions
I'm trying to implement transactions on a CrudRepository Interface. I'm a beginner with this and my current problem is that when receiving a lot of requests from different clients, I'm sometimes ...
0
votes
1answer
16 views
NoSQLUnit MongoDB insert collection names are []
I am trying to write a JUnit test case for a Spring MongoDB Repository class in a Spring Boot project. But I keep getting the exception.
com.lordofthejars.nosqlunit.core.NoSqlAssertionError: ...
0
votes
4answers
37 views
application properties for different string connection to mysql
this is my applciation.properties for development environment
# thymeleaf
spring.thymeleaf.cache = false
# datasource
spring.datasource.url=jdbc:mysql://localhost:3306/my_db
...
1
vote
1answer
34 views
Spring-Boot war external Tomcat context path
We're using Spring Boot and I've created a WAR, instead of a JAR, to deploy on a regular Tomcat server. All seems to work fine, except it appears that the context path isn't being set properly. Any ...
0
votes
0answers
30 views
Spring boot Autowiring service implementation in a bean fails
I'm trying to autowire a service implementation in one of my beans, but I keep getting a NoSuchBeanDefinitionException. This is my code:
Repository:
@Repository
public interface ...
0
votes
1answer
20 views
Angular can't parse Spring response
I am having some issues trying to receive a response message from a Spring RESTful web service to an AngularJS client.
I am using ResponseEntity<String> to return a response to the client. ...
3
votes
0answers
31 views
Spring data jpa repository property not found
I am new to Spring Data JPA. I've tried to create a custom method for the repository but it does throw an exception. Here is my current implementation:
public interface EmployeeRepository extends
...
0
votes
0answers
8 views
Spring boot + OCPSoft urlRewriter + angular ui router html5mode
I'm trying to integrate Spring boot with OCPSoft urlRewriter and using angular ui-router in html5mode, my configuration is this:
The main of Spring boot:
@SpringBootApplication
//@EnableWebMvc
...
0
votes
0answers
10 views
Automatic Conversion from Hateoas Links to Entities
I'm creating a rest application using spring boot. I'm using spring data rest, but because of some constraints in some parts of the application I have to write my own controllers.
Assuming I have an ...
0
votes
1answer
29 views
UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory'
I have a database configuration class to connect my spring web service with the database. I'm using spring boot, to make it stand alone application.
Here is my class
@Configuration
...
0
votes
0answers
26 views
403 Forbidden on POST request with google chrome
When I change my spring-boot version from 1.2.3.RELEASE to 1.3.0.SNAPSHOT I can't use my AngularJS-Application anymore.
In chrome I get a 403 Forbidden response when I try to send a POST request to my ...
0
votes
0answers
14 views
Spring cloud config server not loading the properties files
I'm trying to use this sample spring cloud config server application https://github.com/spring-cloud-samples/configserver but it is not working as expected in my local "windows 7" machine.
When I try ...
0
votes
1answer
19 views
Can i have more than one Spring Cloud Config Server?
I understand that i can use more than 1 repositories to distribute my configurations across multiple repositories (probably for each application) but, can I run more than 1 Config servers for these ...
0
votes
0answers
25 views
angularjs springmvc fileupload
I am new to angularjs and i am not able to understand the examples on internet for angularjs file upload directive.
I have a following class :
@Entity
public class StudentPicture implements ...
0
votes
2answers
19 views
How other program language clients use Spring Cloud Config Server?
There is a mention in the 'Spring-Cloud-Config-Server' documentation that says,
To use these features in an application, just build it as a Spring
Boot application
Does this mean that my ...
0
votes
0answers
38 views
Updating particular field in REST call jpa
Am new to REST webservice, i have a scenario where each field in a form to be save to the database as when user fills the field.
So am calling an update API when user goes from one field to another. ...
0
votes
1answer
20 views
spring-boot, spring-boot-starter-data-jpa: database type NONE or Cannot find changelog location
me again, now with a spring-boot-starter-data-jpa Problem. I using spring-boot to access multiple databases. MongoDB went right, also Cassandra, last one PostgreSQL and JPA have some problems. i think ...
0
votes
1answer
19 views
How to set the data directory of ElasticSearch with Spring Boot
My problem is similar to [1]
I have a spring boot appplication where i save some document in elasticsearch. The index is created in a data dir in the current directory each time. I wanna change this ...
1
vote
1answer
41 views
How to configure and receiveAndConvert jSON payload into domain Object in Sping Boot and RabbitMQ
Recently I have been having a keen interest on Microservice Architecture using Spring Boot. My implementation has two Spring boot applications;
Application One receives requests from a RESTful API, ...
0
votes
0answers
57 views
Getting an error in Spring Boot when i am trying to put data in database
I am getting this error when I am running my Spring Boot Application and I can't figure out where I am going wrong
Exception in thread "main" org.springframework.context.ApplicationContextException: ...
0
votes
1answer
45 views
Spring-Boot, Spring-Data-Cassandra: Autowire CassandraRepository, java.lang.NoClassDefFoundError
first question so far. Have trouble to Autowire CassandraRepository. I have a multiple databases project. I want to use Postgres, Mongo and Cassandra. I got Mongo working, but Cassandra is a pain. I ...
1
vote
2answers
28 views
@Autowired in ThreadPoolTaskExecutor doesn't work
I trying to run async thread on button press in Java GUI application.
My code is:
Config class:
@Configuration
@ComponentScan({"khartn", "khartn.torrentsuploader.processor"})
public class AppConfig ...
2
votes
1answer
39 views
How is it Possbile to run Groovy class together with java classes using Spring boot
I am trying to run my spring-boot app (using gradle and java) together with groovy classes.
So I added controller (as shown in the examples)
the controller is under src/main/groovy
@RestController
...
0
votes
1answer
21 views
Thymeleaf th:each filtered with th:if
I need to iterate and create <span> elements for each of the component in the components array which has the name of 'MATERIAL'
My code is as below
<span th:each="component : ...
1
vote
1answer
24 views
Spring Boot - nesting ConfigurationProperties
Spring boot comes with many cool features. My favourite one is a type-safe configuration mechanism through @ConfigurationProperties and corresponding yml/properties files. I'm writing a library that ...
0
votes
1answer
16 views
Configure Jetty in Spring Boot using usual Jetty XML
Is there a simple way to use (or reuse) external Jetty configuration files to configure an embedded Jetty web container with Spring Boot.
Programmatic configuration to change only the listening port ...
1
vote
1answer
22 views
Spring boot Could not resolve view with name
Here's my spring boot configuration
@EnableAutoConfiguration
@EnableWebMvc
@ComponentScan({"org.app.genesis.client.controller","org.app.genesis.commons.service",
...
1
vote
1answer
25 views
redirection in location.path() angularsjs method
app.js
.when('/ModifyStructure/{c}', {
templateUrl: 'views/ModifyStructure.html',
controller: 'ModifyStructureCTRL'
}
method
$scope.editST = function (ids) {
...
0
votes
1answer
21 views
Spring Boot ignore ObjectMapper module
In application context I have registered an ObjectMapper module:
@Bean
public SimpleModule jsr310Module() {
final SimpleModule module = new SimpleModule();
module.addSerializer(new ...
0
votes
0answers
24 views
Request method 'DELETE' not supported spring boot and angularsjs
i'm using spring boot application and angularsjs
theres is my delete method with spring and angularsjs :
there is my app.js :
$scope.deleteST= function(ids)
{
...