瑞吉外卖记录

package com.itlc.reggie.config;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

public class WebMvcConfig extends WebMvcConfigurationSupport {
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/backend/**").addResourceLocations("classpath:/backend/");
        registry.addResourceHandler("/front/**").addResourceLocations("classpath:/front/");
    }
}

静态资源映射


Kizuna丨AI - 博客园 (cnblogs.com)瑞吉外卖链接

拦截器的一般方法  拦截器//过滤器

代码/**  一般设置  /** ctrl+enter代码

urls.for  for循环  别忘记

js里面才有====

ctrl+p  函数提示参数

==============================================

@responsebody 以json封装返回

@ResponseBody注解的功能大全 (java265.com)

jvm是干什么用的

restful到底是什么

MP配置

@Configuration
public class MybatisPlusConfig {
    @Bean
    public MybatisPlusInterceptor mybatisPlusInterceptor(){
        MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
        mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor());
        return  mybatisPlusInterceptor;
    }
}

R<Page> 这个一般是什么意思呢

debug问题  ( 未解决)

BeJson 火狐自带 在线JSON校验格式化工具(Be JSON)

ctrl F5清除缓存

三元运算符 !this.status? 1:0 当前是一 传0 当前是0 传1

http://localhost:8080/backend/page/member/add.html?id=1675379488588525570

取后面的id

是这样的方法 等会来整理

瑞吉外卖记录 git跳过 学linux

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值