Skip to content

Tag: java

@DeleteMapping endpoint not triggered at all

My webClient calls work fine with @GetMapping, but @DeleteMapping isn’t even triggered. Here are the two methods I’m using: The endpoints are: When I try to delete an item I get no errors, no 405, no 400, no 403, nothing. The webClient call returns normally (with a MonoIgnorePublisher object), but…

how to get different type of agent in Main in anylogic

Now I set two types of agents: Atype and Btype, and use the pedsource to let these two types of agents run between two target lines. I want to get an agent belonging to Atype, and another agent belonging to Btype, And then add some calculations. so I write this code: for(Atype p : get_Main().Atype) and for(Bt…

Java socket only use loopback

I have tried to connect my laptop to another laptop (on the same network, both using Windows 10) using java socket. Here is the client code : And the server code : But for some reason, even if I specify an ip address, the laptop only look for a host in loopack, not on the private network. Here is the

How do I execute a docker container

I created the images locally and created one repository in DockerHub called testName/backend. The docker images command shows the created images. And I would like to run the container with a command in the format docker run yourImage:version. So according to this (so I think I should call such a command: dock…

VB to java problems

I have VB code and want to convert it to Java for a mobile app, but I always get a different end result in Java and I don’t know where my mistake is, or what I’m doing wrong. VB Code: Result: h1qKTNN456AqTZUPPaft3Q== Java: Result: NDM5MjFmZjJiMjc1YjRlZTI0YmQ4NGI0YTQ2ZjQxMTI= Answer The .NET Unicod…