随笔分类 -  1外卖项目

摘要:把静态资源导入resources里时,启动项目,访问项目主页发现不行,原因是得告诉sping静态资源的路径 于是得写个配置类webmvcconfig.java在里面配置静态资源路径 得extends WebMvcConfigurationSupport 然后在类上面写配置标签@Configurati 阅读全文
posted @ 2023-03-21 10:25 大灰狼21 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-03-21 10:01 大灰狼21 阅读(21) 评论(0) 推荐(0) 编辑
摘要:效果图: 步骤: 阅读全文
posted @ 2023-03-21 09:45 大灰狼21 阅读(18) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_46437112/article/details/127938352 阅读全文
posted @ 2023-03-20 18:26 大灰狼21 阅读(4) 评论(0) 推荐(0) 编辑
摘要:@GetMapping("/{id}")public R<Employee> getById(@PathVariable Long id) { log.info("根据id查询员工信息。。。"); Employee employee = employeeService.getById(id); re 阅读全文
posted @ 2023-03-20 09:57 大灰狼21 阅读(77) 评论(0) 推荐(0) 编辑
摘要:@PutMappingpublic R<String> update(HttpServletRequest request, @RequestBody Employee employee) { log.info(employee.toString()); //获取当前登录用户id //Long em 阅读全文
posted @ 2023-03-20 09:56 大灰狼21 阅读(61) 评论(0) 推荐(0) 编辑
摘要:@GetMapping("/page")public R<Page> page(int page, int pageSize, String name) { log.info("page={},pageSize={},name={}", page, pageSize, name); //构造分页构造 阅读全文
posted @ 2023-03-20 09:56 大灰狼21 阅读(81) 评论(0) 推荐(0) 编辑
摘要:@PostMappingpublic R<String> save(HttpServletRequest request, @RequestBody Employee employee) { log.info("新增员工,员工信息:{}", employee.toString()); //初始密码1 阅读全文
posted @ 2023-03-20 09:54 大灰狼21 阅读(30) 评论(0) 推荐(0) 编辑
摘要:@PostMapping("/logout")public R<String> logout(HttpServletRequest request) { //1、清理Session中的用户id //2、返回结果 request.getSession().removeAttribute("employ 阅读全文
posted @ 2023-03-20 09:53 大灰狼21 阅读(23) 评论(0) 推荐(0) 编辑
摘要:@PostMapping("/login")public R<Employee> login(HttpServletRequest request, @RequestBody Employee employee) { //1、将页面提交的密码password进行md5加密处理 String pass 阅读全文
posted @ 2023-03-20 09:49 大灰狼21 阅读(61) 评论(0) 推荐(0) 编辑
摘要:注解: @Slf4j@RestController@RequestMapping("/employee")注入service: @Autowiredprivate EmployeeService employeeService; 阅读全文
posted @ 2023-03-20 09:47 大灰狼21 阅读(11) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/m0_65097618/article/details/129413204 阅读全文
posted @ 2023-03-17 09:39 大灰狼21 阅读(6) 评论(0) 推荐(0) 编辑
摘要:到右边maven那里clean下再启动 https://blog.csdn.net/Pan_peter/article/details/126774921 阅读全文
posted @ 2023-03-16 15:27 大灰狼21 阅读(5) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示