skip to Main Content

Amazon web services – Java 17 runtime kinesis lambda code doesnt work localstack (easy code)

Its very simple. This code works as jar and lambda (maven project): package test2; import java.util.Map; import com.amazonaws.services.lambda.runtime.Context; import com.amazonaws.services.lambda.runtime.RequestHandler; public class test implements RequestHandler<Map<String,String>, String>{ @Override public String handleRequest(Map<String,String> event, Context context) { String prueba = "Prueba"; return prueba;…

VIEW QUESTION

Javascript – i can't to fix CORS

When i register to my form it's not work because : Access to fetch at 'http://127.0.0.1:8081/api/auth/register' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on…

VIEW QUESTION

Proper way to "do while" SQL in Eclipse – worked prior to SSH connection to MySQL

Class.forName("com.mysql.cj.jdbc.Driver"); Connection connection = DriverManager.getConnection( "jdbc:mysql://127.0.0.1:3306/wp_dashort", "dashort", "gt9wkk6r1TPnkgrY"); PreparedStatement ps = null; ps = connection.prepareStatement(mark_complete); System.out.println("dateset"); dateof = dateof + " 00:00"; // ps.setString(1, dateof); connection.createStatement(); ResultSet rs = ps.executeQuery(); Sheet sheet = workbook.createSheet("Security_Completions"); org.apache.poi.ss.usermodel.Row rowhead = sheet.createRow((short) 0); System.out.println("Sheet…

VIEW QUESTION

is it possible to retrieve and print the data from a json object inside json array without using any index values and specific keys

[ { "id": "628ba44f5a6de600071d16fa", "@baseType": "LogicalResource", "isBundle": false, "isMNP": false, "businessType": [], "category": [ { "id": "628ba3ef5a6de600071d165f", "name": "Starterpack2", "description": "Starterpack2", "code": "RC17", "version": 2 }}] now i need to check and print the JSON Object inside the JSON Array…

VIEW QUESTION
Back To Top
Search