Skip to content
Advertisement

OAuth issue in API gateway

I am facing the OAuth issue, details are below: I am having two microservices: registration-service(https://github.com/choudharylakshyaveer/registration-service) student-service(https://github.com/choudharylakshyaveer/student-service) For these two I have added : cloud-config-server(https://github.com/choudharylakshyaveer/cloud-config-server) naminig-server(https://github.com/choudharylakshyaveer/naming-server) gateway(https://github.com/choudharylakshyaveer/api-gateway) FrontEnd: is at react js: https://github.com/choudharylakshyaveer/chargie For first time use, a new user need to be register that can be done from curl: To login using the above registered user, below can be run

Spring Boot. Forward on RestController

I am implementing a mechanism for replacing short links. I need to forwarded request to another controller. I found examples how to do it in spring on models, but I don’t understand how to do it in RestControllers Example what i found (use models) Or maybe I’m looking in the wrong direction and I need to make a filter? UPD.

Drawing raffle numbers out of list that can have duplicates in Java

I was trying to learn programming by writing code with friends, we are all new though and are stuck with this raffle program. Players can earn multiple raffle tickets. The raffle tickets are written down in a new row in an ArrayList when they are earned. It looks like this: “PlayerA PlayerB PlayerB PlayerC PlayerD PlayerE PlayerF” Now we want

Search for all po files in a directory and its subdirectories and create a Hashmap containing the filepaths as value and its directory as key

I want to search for all .po files in a directory and add them to a HashMap. My directories looks like the following: How can I represent/search these files with the help of java-Streams and HashMap<String, List<File>>, with en/de/it.po as a List<File> type and the respective directory root of these files dir1subdir-1**subdir-n as a key? I’ve tried the following solution

Duplicate “values” for some key in map-reduce java program

I am new in mapreduce and hadoop (hadoop 3.2.3 and java 8). I am trying to separate some lines based on a symbol in a line. Example: “q1,a,q0,” should be return (‘a’,”q1,a,q0,”) as (key, value). My dataset contains ten(10) lines , five(5) for key ‘a’ and five for key ‘b’. I expect to get 5 line for each key but

How to finish an Activity inside a dialog? I called finish(); and SecondActivity.this.finish(); but they didn’t work

In the first case, finish() works properly, but it doesn’t work inside the dialog. This code is from second Activity, in the first case when I call finish() it finishes and return back to MainActivity but in the second case inside the dialog when I call finish(); the app crashes. I can do something like startActivity(new Intent(getBaseContext(), MainActivity.class)); inside the

Advertisement