Questions tagged as 'java'

1
answer

Change the activity theme

I try to change my theme to @android:style/Theme.Holo.Light in AndroidManifest but when the app runs in an emulator it stops working. I followed a video lesson and it looks exactly the same. I do not know what it can be. In logcat what...
asked by 01.04.2015 / 19:40
2
answers

Insertion into the database through Webservice

Good evening, I know very little about Webservice . And, through tutorials, I was able to create one. Content has been taken from this site: Creating Web- Service The query is done successfully, but now I need the user to enter s...
asked by 11.03.2015 / 01:13
1
answer

Foreign keys in java

I'm having a bit of trouble implementing the foreign keys in my example. Can anyone help me mount the DAO class? CidadeDAO.java public class CidadeDAO { private final Connection connection; public CidadeDAO() { try {...
asked by 25.03.2015 / 13:17
1
answer

How to pass dates in Java to a database?

I'm trying to pass a date in "yyyy/MM/dd HH:mm:ss" format to the database so I'm using Date() and SimpleDateFormat() , however it returns me a string . Is there any way I can return a date or if there is any conversion to it...
asked by 16.03.2015 / 15:09
1
answer

Spring Security blocks POST requests despite settings

I'm developing a REST API based on Spring Boot ( spring-boot-starter-web ) where I use Spring Security ( spring-security-core and spring-security-config ) to configure the protection of different endpoints . > Authentication...
asked by 25.06.2018 / 17:00
1
answer

I can not access a form page

I'm doing a Spring Alura course, but I can not access a form page via the link link. It gives the following error:    HTTP Status 404 - Not Found   Type Status Report       Message /casadocode/products/WEB-INF/views/products/form.jsp     ...
asked by 20.06.2018 / 19:22
2
answers

Change the project dependencies folder (lib)

When compiling my project in Netbeans , the files are generated in this way: ./dist ./dist/meuProjeto.jar ./dist/readme.txt ./dist/lib ./dist/lib/dependencia1.jar ./dist/lib/dependencia2.jar And I want it to be generated without the...
asked by 01.04.2015 / 16:06
1
answer

How to convert JSON to Object and find an id - JAVA

I need to convert a JSON to an object and navigate to an ID and just capture it. JSON Example: "{"_status":"sucesso","_dados":{"_sucesso":[{"idintegracao":"BkmRboZmaaa","situacao":"SALVO","TituloNumeroDocumento":"01012020","TituloNossoNumero":...
asked by 19.06.2018 / 18:12
2
answers

Servlet with JSP does not insert into the database

I'm doing my Interdisciplinary College Project and it would be an e-commerce. Well, I was following the part of inserting in the bank for a course book I made for Caelum, but I do not know if something is missing in the book, but at the time of...
asked by 08.11.2018 / 04:54
1
answer

How to check if a given field / value exists in the JSON document?

{ "timestamp":"2018-10-08T16:58:38.949Z", "dataFrame":"QQ==", "fcnt":15, "freq":902500000, "port":12, "rssi":-69, "snr":10, "sf_used":10, "session_id":"f41e10e8-1c73-499c-8ad7-4cbcd54c8ebd", "gtw_info":[{ "gtw_id":"000000000b0319a3", "rss...
asked by 09.10.2018 / 17:49