-1

I need to read a json file with multiple linkname and url then create a menu link mapping out of it.

Menu

linkname1: This is a link1

linkname2: This is a link2

Using org.apache.model.rest.RestDefinition method if possible, any idea?

Ricky Vene
  • 105
  • 1
  • 11
  • I found a way to do this with my another [post](https://stackoverflow.com/questions/73254189/pretty-print-json-with-spring-boot-only-works-with-console) with thymeleaf. – Ricky Vene Aug 07 '22 at 14:47

1 Answers1

0

I have to put

@Controller
@RequestMapping("/xxxx")

On the main class

I have to put

@GetMapping()
public static RestDefinition

But it only run in eclipse and it compile with no error, but if you run, you will have error. I just decided to rewrite it all in spring-boot without RestDefinition and old java programs.

Ricky Vene
  • 105
  • 1
  • 11