vue html
计算属性-vs-侦听属性
{{ firstName }}
表格
| {{item.id}} | {{item.userId}} | {{item.userName}} | {{item.passWord}} | {{item.message}} | {{item.createTime}} |
springboot api 接口
package com.example.demo.controller;
import com.alibaba.fastjson.JSON;
import com.example.demo.common.annotations.PassToken;
import com.example.demo.common.annotations.UseToken;
import com.example.demo.common.result.ApiResult;
import com.example.demo.domin.TbUser;
import com.example.demo.request.dto.LoginDto;
import com.example.demo.request.dto.UserAddDto;
import com.example.demo.service.UserService;
import com.example.demo.utils.*;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RBucket;
import org.redisson.api.RedissonClient;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
import java.util.List;
@CrossOrigin
@Slf4j
@RestController
@RequestMapping("/api")
public class TestController {
@Autowired
private UserService userService;
@GetMapping("/1")
public ApiResult
注意api接口需要使用 注解 @CrossOrigin,实现跨域。



