In-site messages, group messages and all messages. Gson parsing result
/**
*Send site message
*/
@Permission(Module.TZGL)
@RequestMapping(value = "/sendznx", method = RequestMethod.POST)
@ResponseBody
public String sendZnx(HttpSession session, Model model,
@ RequestParam(defaultValue = "") String[] userList,
@RequestParam(defaultValue = "") String content) throws Exception {
int rows = 0; //Record the number sent
String msg = ""; //Record return information
System.out.println("length--->"+userList.length);
System.out.println("content--->"+content);
try{
if(userList.length == 0 ; timeout(10000)
.get()
.text();
//--->Use Gson to convert the requested data into a MAP structure
.text();
.
>() {}.getType ());
//---> Take out the Object type data required in MAP and convert it into a List . Gson converts List to Json

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
