Questions tagged as 'spring-boot'

0
answers

APPLICATION FAILED TO START: Persistent error when starting the application

Full Project: link I'm developing an application with Spring Boot, and when I started the application I ended up finding an error that I could not resolve after hours of searching. Error starting ApplicationContext. To display the condi...
asked by 05.11.2018 / 16:25
0
answers

KeyHolder.getKey () may return null - Spring Boot JdbcTemplate

I'm starting Spring and I'm doing a method that will insert a new row into a database table and this method will return the% new% that was generated by the Bank, I'm doing this: public Profissional insert(Profissional profissional) { Prepa...
asked by 06.10.2018 / 00:16
0
answers

How to work with MultipartFile in Spring Boot?

I'm still in the process of uploading images, see the code below; @PostMapping public String upload(@RequestParam("files[]") MultipartFile[] files) { System.out.println("files >>>>>>>>>>>>>...
asked by 03.10.2018 / 16:16
1
answer

Error running application (UnsatisfiedDependencyException: Error creating bean with name)

Hello, Can anyone help me with the error presented while trying to run the application? Error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reqSituationResource': Unsatisfied dependency e...
asked by 02.10.2018 / 22:11
0
answers

How to create a Thread in Spring Boot?

I'm starting a file upload file application, where it writes the path in the database and the image on the server, when carrying out a test I can send the image to the folder, now I need to be able to create the temporary location when I submit...
asked by 05.10.2018 / 12:34
1
answer

Save an object with a list using Spring CrudRepository

Hello, Is there any way to save an object with a list of objects (Set)? For example, I have the Artist and Album objects, Artist has a list of Albuns (Set). I would like when saving the Artist also save the list of Albums together, which would a...
asked by 18.09.2018 / 04:28
0
answers

Unknown system variable 'query_cache_size'

My project has this error; java.sql.SQLException: Unknown system variable 'query_cache_size' at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[mysql-connector-java-5.1.41.jar:5.1.41] at com.mysql.jdbc.MysqlIO.checkErro...
asked by 12.09.2018 / 18:15
0
answers

Unable to load authentication plugin 'caching_sha2_password'

I was running my Spring Boot project about 6 months ago, and it was working perfectly, today I decided to install the new version of mysql and suddenly there was this error message; java.sql.SQLException: Unable to load authentication plugin '...
asked by 12.09.2018 / 17:58
0
answers

How to have several exception classes in Junit Spring Boot?

I would like to have several exception classes in this code snippet below, but I'm just getting one, how do I put multiple exception classes? @Test(expected = NameProjectEmployeeCadastradoException.class) I tried it that way, it did not wo...
asked by 19.09.2018 / 20:40
1
answer

Error creating bean with name 'cargoDaoImpl': Lookup method resolution failed; nested exception is java.lang.IllegalStateException:

I'm trying to upload my spring project, but I get the following error. 15:17:43.079 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : [] 15:17:43.081 [main] DEBUG org.springframew...
asked by 01.09.2018 / 20:31