Questions tagged as 'java'

1
answer

I can not inject MockMvc into integration test [Spring Boot]

@RunWith(SpringRunner.class) @SpringBootTest public class CustomerRestTest { private static final String BASE_URL = "http://localhost:8080"; @Autowired private MockMvc mockMvc; @Test public void indexTest() { MvcRes...
asked by 19.10.2016 / 16:47
1
answer

Run Java program with PHP and return Output from Console

I need to run a Java program that is on my server, for example Teste.java and return the console output resulting from the execution, be it an error, or a phrase like Olá Mundo! , using PHP. I already used commands like exec("...
asked by 19.10.2016 / 12:32
1
answer

Xamarin Error Build FAILED: Unsupported major.minor version 52,0

I'm using Xamarin Visual Studio Comunti 2015 After compiling a project, however I get the following err: Exception in thread "main" 1>java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 5...
asked by 17.10.2016 / 16:42
1
answer

Charts Primefaces

I am having the following problem I have the following class which receives the values of the information graph collected in real time from the bank @ManagedBean public class ChartView implements Serializable { private BarChartModel barModel;...
asked by 17.10.2016 / 16:05
0
answers

Doubts structure of a crud on Android

I have the following classes: Client, DAO Client and DAO. In the Client template I have the attributes and the gets / sets. In the ADOUNT I have the methods save (), change (), ... ie the crud. This class assembles a string with the parame...
asked by 19.10.2016 / 14:36
1
answer

sort the dates in the bank

I have the following problem, I can not sort in ascending order the dates that are saved in the bank, I am using the order by no select but only orders the first two houses until arriving in / making the month messy, my project is android but I...
asked by 17.10.2016 / 19:49
1
answer

Hibernate with PivotTable Names

Good Morning / Afternoon / Evening Personal! in a scenario where a bd table must have a name and concatenated dates like that would get with hibernate since the base name is annotated in the model. As it is: @Entity @Table(name="nome_da_tab...
asked by 13.10.2016 / 19:13
1
answer

How to convert String to Double using JSP FMT EL

Hello I have a string 9,9, I would like to convert it to 9.9 and double it to do sum Currently I use this way: <c:set var="media" value="0" /> //onde a funcao.valor é uma string 9,9 <c:set var="ontem" value="${ontem + funcao.valor}...
asked by 03.11.2016 / 15:13
0
answers

Liquibase .sql file not found

When I run liquibase it does not find .slq files configured by the tag. SQLFile. How do you solve this? Problem data: Use in the project Liquibase 3.4.2. Configure the maven plugin Run script in Maven Ok everything works (Windows +...
asked by 03.11.2016 / 16:48
1
answer

Remove selected item in new selection on spinner

Hello, I would like to remove an item already selected in the android spinner. Example: ItemA ItemB -> SELECIONADO ItemC ItemD Since ItemB is selected I would not want it to appear in the list when I was to select it again in Spinner....
asked by 03.11.2016 / 19:00