Questions tagged as 'java'

2
answers

404 in css file after spring mapping

Good night everyone! I can not access the css of my application in spring, even after mapping resouce, follows codes: @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/reso...
asked by 30.01.2017 / 00:57
1
answer

Base64 and MD5 - Java

What are the differences between MD5 and Base64 for encryption? Which is the safest? I read that MD5 is the most used, but wanted to understand the reason.     
asked by 15.02.2017 / 00:14
2
answers

Jboss Multiple context-root pointing same war

Good evening. Is it possible to configure Jboss multiple context-root pointing to the same war? If it is not possible in jboss, is there any way I can do this? Thank you     
asked by 10.02.2017 / 21:58
0
answers

Passing parameters from an Activity to a calculation class

I would like you to help me in a situation that I am doing in my project, but that somehow the application stops clicking the calculate button. I'll give you a simple example to know more or less of what I need. The user enters two numbers in...
asked by 19.01.2017 / 18:36
1
answer

Thymeleaf - Submit information from inside table

Is it possible to give information submit from within one using thymeleaf? Example: <form method="post" th:action="@{/receive}" th:object="${objeto}" > <input type="text" th:field="*{nome}"/> <table&...
asked by 19.01.2017 / 15:03
1
answer

SpringBatch SkipPolicy, what's the use?

I would like to know what the SkipPolicy is that is set in StepBuilderFactory. If possible I would like some documentation explaining.     
asked by 01.02.2017 / 19:42
0
answers

Insert horizontal scrolling in line chart in MPChart Android

I'm using the MPChart Android library (v3.0.1) to draw graphics in my Android app, however I wanted to make my scrollable graph in X axis , this is my code: private void loadDadosGraficoLinha() throws Exception{ ArrayList<Peso> l...
asked by 02.02.2017 / 13:35
1
answer

Code does not read ELSE [closed]

Personally speaking, I'm a beginner on Android and would like you to ask me a question. I am making an app so that the user completes all EditText's so that the program can perform the correct calculations and therefore expose the result in the...
asked by 16.01.2017 / 00:45
2
answers

Date Formatting in Java and Hibernate

Good morning everyone! I'm trying to return a formatted date, it's in the database as date, but for return it could be a msm string. Some friends have indicated two modes, creating a new method for formatting or using java 1.8's LocalDate. The...
asked by 16.01.2017 / 11:38
1
answer

How to consume a multipart form-date method with void method

How to consume a multipart / form-data method of a webservice done in java, by ajax or jquery? Below I leave the method as follows: JAVA: @POST @Path("/aprovarCompra") @Consumes("multipart/form-data") public void aprovarCompra...
asked by 16.01.2017 / 15:01