All Questions
5,747
questions
-1
votes
2
answers
1k
views
How do I convert a java object toJSON format without using any external libraries or dependencies for java?
static class DataObject {
private String access;
private String foo;
private Int age;
}
to {"access" : "value","foo":"value","age":&...
0
votes
0
answers
109
views
ConnectException using restTemplate
I'm working on a spring boot project, the whole project is running on my machine. everything was working fine previously, but now it doesn't. I'm running a fake json on npm json-server on "http://...
0
votes
1
answer
31
views
Loop through JSON array from API Retrofit
I'm having problem with parsing my JSON Array from an API call. The response from the API look like this
{
"SUCCESS": [
{
"user_id": "susan",
"...
0
votes
1
answer
18
views
I have three android projects that share many identical or very similar classes. What could I do to make single edits?
I have three projects on Android that have many identical or similar classes.
Since I found myself making double or triple changes, I was wondering what could I do to make single edits.
I came up with ...
0
votes
1
answer
660
views
You didn't pass an authentication token in java
I am wanting to use the POST method. I have an API where I want POST using HttpConnection. But It not working. It shows "You didn't pass an authentication token. Learn how to authenticate and get ...
-1
votes
1
answer
32
views
To create only one endpoint which will work for two endpoints
Spring -> How to user request parameter in fetch all endpoint?
(If i want to make only one endpoint for fetch all and fetch by Id)
I'm not understanding how to do it in service. I've tried to do it ...
0
votes
0
answers
126
views
Fetching API Response from Eclipse Java not working
So I am trying to fetch this API response but have not been able to the problem. when I call this below function and debug it at a certain point it fetches the result but as soon as it crosses if ...
0
votes
0
answers
30
views
Search values in table based on any one of the field
I have created an API which manages contact for a user. The Contact table contains following fields.
ID NUMBER(10,0)
EMAIL VARCHAR2(255 CHAR)
FIRST_NAME VARCHAR2(255 CHAR)
...
0
votes
1
answer
109
views
Why is ResponseEntity<Foo> geting a different result to ResponseEntity<String>?
For my Java Spring Boot Application (v2.7.12), I am performing a GET request using restTemplate.exchange() which passes in my correct url, HttpEntity with the correct headers, and response type ...
0
votes
1
answer
21
views
Uploading photo to db using retrofit passing File type but it throws error no file path foung in log
This is my api call in the fragment class where I deal with profile data, it displays the image on button click but doesn't upload the image to database.
public void uploadImage(File file){
// ...
0
votes
0
answers
274
views
Trying to create an API but Java Spring Boot can not read postgresql table column's name with sign double quotes on it. Error SQLState: 42703
I was trying to create an API but Java Spring Boot can not read postgresql table column's name with sign double quotes on it. It throws error 'SQLState: 42703' and 'ERROR: Column a1_0.xx does not ...
-1
votes
1
answer
566
views
How to solve CORS policy blocking when connecting front end to Java Spring Boot API?
How to connect my front end (html/css/js) to my back end (java spring boot, jpa)?
after connecting them, how do I upload the fullstack application onto aws?
I tried using fetch from http://127.0.0.1:...
0
votes
0
answers
21
views
How can I directly save a file to Google Cloud using Java APIs and without initializing it locally?
I'm trying to figure out how can I save this file(.flac) directly to google cloud without initializing it locally. Is it possible actually? I have all the needed dependencies, libraries, etc. Thanks ...
1
vote
1
answer
370
views
Route between two points in Android Studio (Java) using the Maps Directions API
I have the following code, which has the purpose of showing the route between a point 'A' and a point 'B', the initial point 'A' is originated by the current location of the device, while the point 'B'...
0
votes
1
answer
74
views
Blocked by the CORS policy in the get method
I made my backend using springboot and added CORS to all the routes:
package com.sysmap.showus.services.utils.config;
import org.springframework.context.annotation.Configuration;
import org....