Questions tagged as 'java'

0
answers

Add items Order to SpringMVC and Thymeleaf

I'm doing an application, I've made a form to add the object Pedido to the database, but in that object it has a list of other objects ( itensPedidos ). How should I write the SpringMVC controller, to add the items dynamically? W...
asked by 19.10.2018 / 01:40
0
answers

How to save a base64 in a mysql database?

I'm creating an application using AngularJS and using webservlets with connection to the mysql database. To generate the binary, I use the following code: $scope.adicionarArquivo = function (element) { var reader = new FileReader();...
asked by 14.10.2018 / 21:55
0
answers

Error while trying to build android project on jenkins

I'm trying to start a study with Jenkins, I configured the android as a tutorial however when trying to build the project it's always returning the result below in the console, does anyone know how to solve? Note: I use windows 7 Iniciado pelo...
asked by 22.10.2018 / 02:38
1
answer

NullPointer when using Cucumber and Rest-Assured

I am performing an API test using Cucumber and Rest-Assured, but in the call I use Rest-Assured a NullPointer is being returned. My Feature: Scenario: Parâmetros não foram informados Given A API de teste When A requisição for realiza...
asked by 22.10.2018 / 05:12
0
answers

Record N for N (many for many), where I need to send according to the image an Array

I'mdoingaNtoN(manytomany)signup,whereIneedtosendanArrayofdrugs,Unitanddosageaccordingtotheimage.ThequestionishowtogetthisArrayinonlyonerequestandpersistinDAOinthetablewiththatarray.Thisispossible,becauseinDAOI'mgoingtoregisteranarraybygoingthro...
asked by 16.10.2018 / 23:26
1
answer

Problem inserting data into the Firibird database

I'm having this error when I'm going to insert data into the database .... I'll send the code and the error ... sorry, I'm newbie conexao banco /* * To change this license header, choose License Headers in Project Properties. * To change thi...
asked by 10.10.2018 / 16:37
0
answers

How do I inject EJB's that call other EJB's in a JUnit test class?

I'm trying to test a class in JUnit. It turns out that the class I am testing has several EJB's that call other EJB's. How do I inject JUnit EJBs into a test class that calls other EJB's? Thank you.     
asked by 10.10.2018 / 17:20
1
answer

How do I pass a lambda function as a parameter?

I'm doing a college job where I have to develop a calculator with Java. I'm trying to figure out how to pass lambda functions as a parameter so that it's possible to put these functions into a list, so the calculator would have several options t...
asked by 12.10.2018 / 04:59
0
answers

Table gets null when I make setCellValueFactory

I'm getting an error when I try to throw information from an array into a table. It's NullPointerException when I try to set the columns. The array is being mounted with all positions. One of the columns in the table is a checkBox. I already...
asked by 10.10.2018 / 14:13
0
answers

How to correctly configure Thymeleaf Dialect?

To learn a little more about Spring Boot I created a small project. Data persistence works, but I'm having problems with Dialect of Thymeleaf . I know how to configure Maven , but I can not make it work in Gradle...
asked by 10.10.2018 / 04:39