Questions tagged as 'spring'

1
answer

EntityManagerFactory closed session

About this topic: Change in database and update of entity Resolved, but now gives another EntityManagerFactory is closed error. I created this class: package br.com.netsoft.dao; import javax.persistence.EntityManager; import javax.pe...
asked by 17.05.2018 / 05:15
1
answer

Connection Reactive Database

I'm developing an app with Spring Boot and I have a configuration class that generates a @Bean DataSource. I would like to generate alternative connection levels for connecting to the database, such as if the environment variables are incorre...
asked by 15.05.2018 / 20:05
1
answer

How to use Files.move with Java?

I created a photo upload on my system, these photos are saved in a temp, I need to move them to a default directory, other than temp. This is the method that creates the directory: public FotoStorageLocal() { //Versao MAC //this(get...
asked by 09.05.2018 / 02:47
1
answer

Bug Spring boot - Liquibase

18-04-15 23: 10: 21,452 INFO 9464 --- [restartedMain] o.apache.catalina.core.StandardService: Stopping service [Tomcat] 2018-04-15 23: 10: 21,470 INFO 9464 --- [restartedMain] ConditionEvaluationReportLoggingListener: Error starting Applicati...
asked by 16.04.2018 / 04:11
0
answers

Problems with ApplicationListener in Spring Boot

I'm trying to implement an event that is monitored by a listener, but Spring does not call the Listener ... Event: import org.springframework.context.ApplicationEvent; public class CustomSpringEvent extends ApplicationEvent { private stat...
asked by 18.04.2018 / 20:57
1
answer

Angular and Spring System for homologation

We have a VM in the azure. I generated the homologation build and put it on the server. Generated the files and index.html so <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>DESIF&l...
asked by 20.04.2018 / 00:47
1
answer

How does Spring MVC identify the Model, View, and Controller files?

I wanted to know how Spring traces these files. So far I know that Spring MVC has DispatcherServlet which is responsible for sending requests to controllers that respond to such URL. But how does Spring do to return / render the correct p...
asked by 18.04.2018 / 14:02
0
answers

Error server memory wildfly

I tried to import a 66 megabyte file, and gave this error in wildfly : Caused by: java.lang.OutOfMemoryError: Java heap space In addition to including this setting in spring.    @Bean public MultipartResolver multipartResolver () {     C...
asked by 11.04.2018 / 13:22
0
answers

Error accessing controller - spring securiy

I'm finding this error strange. Class that is reporting on the console: package br.com.netsoft.configuracao.auth; import io.jsonwebtoken.ExpiredJwtException; import java.io.IOException; import javax.servlet.FilterChain; import javax.serv...
asked by 06.04.2018 / 19:48
1
answer

Error 415 - File Upload

pom.xml <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.3</version> </dependency> Angula...
asked by 08.04.2018 / 23:28