Can't map a Query String parameters to my JavaBean (using Spring 4 and Datatables)

后端 未结 3 1856
名媛妹妹
名媛妹妹 2020-12-14 11:39

I\'m really stuck into trying to map my QueryString parameters into my Spring JavaBean Command object here, and I couldn\'t find an answer to my question so far.

I\'

3条回答
  •  无人及你
    2020-12-14 12:45

    I know I'm late to the party, but this: https://github.com/darrachequesne/spring-data-jpa-datatables

    is a lovely alternative to read your datatables input elegantly. Even if you dont want to use JPA, you can simply use the DataTablesInput and DataTablesOutput classes to read the input correctly. I also included jquery.spring-friendly.min.js which allowed Spring to easily read the variables that came in.

    Thanks to https://github.com/darrachequesne for a nice elegant solution.

提交回复
热议问题