上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: package com.example.searchdemo.search.utils; import java.util.Random; /** * @version 1.0 * @PACKAGE_NAME: com.example.searchdemo.search.controller * @ 阅读全文
posted @ 2022-06-08 17:04 岁月记忆 阅读(227) 评论(0) 推荐(0)
摘要: package com.ruoyi.framework.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotat 阅读全文
posted @ 2022-06-08 16:27 岁月记忆 阅读(271) 评论(0) 推荐(0)
摘要: public static boolean judgeContainNumber(String str){ Pattern p = Pattern.compile(".*\\d+.*"); Matcher m = p.matcher(str); if (m.matches()){ System.ou 阅读全文
posted @ 2022-06-08 16:07 岁月记忆 阅读(91) 评论(0) 推荐(0)
摘要: 后端 /** * 省市区三级联动 */ controller类 @GetMapping("/queryCityById/{id}") public List<City> queryCityById(@PathVariable Integer id){ return productDisplaySer 阅读全文
posted @ 2022-06-07 16:35 岁月记忆 阅读(31) 评论(0) 推荐(0)
摘要: controller类 // 允许上传的格式 图片形式 private static final String[] IMAGE_TYPE = new String[]{".bmp", ".jpg", ".jpeg", ".png"}; /** * 单个图片上传 */ @PostMapping("/u 阅读全文
posted @ 2022-06-07 16:23 岁月记忆 阅读(115) 评论(0) 推荐(0)
摘要: LoginController类 具体代码 /** * app 登录 */ @AnonymousAccess @PostMapping("login") public AjaxResult login(@RequestBody LoginBody loginBody) { AjaxResult aj 阅读全文
posted @ 2022-06-06 15:58 岁月记忆 阅读(4773) 评论(5) 推荐(1)
摘要: 1、在控制台中输入 System.out.println("请输入内容:"); Scanner sc = new Scanner(System.in); String input = sc.next(); System.out.println("你输入的内容为:"+input); 2、在弹出弹框中输 阅读全文
posted @ 2022-06-02 16:16 岁月记忆 阅读(4404) 评论(0) 推荐(0)
摘要: //绝对定位 <style> body{ width: auto; height: 2000px; } div{ height: 100px; width: 100%; background: red; position: fixed; top: 0px; right: 0px; } </style 阅读全文
posted @ 2022-05-11 16:34 岁月记忆 阅读(139) 评论(0) 推荐(0)
摘要: 1、去掉最后一个字符串 String str = "123,233,323";//定义一个需要去掉逗号的字符串 通过substring截取字串 str=str.substring(int beginIndex,int endIndex); 截取str中从beginIndex开始至endIndex结束 阅读全文
posted @ 2022-04-07 16:07 岁月记忆 阅读(176) 评论(0) 推荐(0)
摘要: 一、List转数组方法一、使用for循环//要转换的list集合List testList = new ArrayList(){{add(“aa”);add(“bb”);add(“cc”);}}; //初始化需要得到的数组 String[] array = new String[testList.s 阅读全文
posted @ 2022-03-15 17:18 岁月记忆 阅读(43371) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页