会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stevenduxiang
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2024年3月10日
JAVA注解的总结及其作用
摘要: # 一、@component标注一个类为Spring容器的Bean,(把普通pojo实例化到spring容器中,相当于配置文件中的<bean id="" class=""/>)。将其扫描注入到Spring容器,注入成Bean # 二、@ServerEndpoint(value = "/server/
阅读全文
posted @ 2024-03-10 21:35 XiangdxDu
阅读(195)
评论(0)
推荐(0)
2024年3月8日
日志记录器
摘要: public class SctongJiService implements ISctongJiService{ /** * 日志记录器 */ private static final Logger log = LoggerFactory.getLogger(SctongJiService.cla
阅读全文
posted @ 2024-03-08 12:49 XiangdxDu
阅读(11)
评论(0)
推荐(0)
映射本地图片
摘要: import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;import or
阅读全文
posted @ 2024-03-08 11:18 XiangdxDu
阅读(27)
评论(0)
推荐(0)
后端跨域配置(通用)
摘要: import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.Cor
阅读全文
posted @ 2024-03-08 11:09 XiangdxDu
阅读(128)
评论(0)
推荐(0)
2024年2月24日
application全局配置
摘要: # 应用名称spring.application.name=hello_mybatis#下面这些内容是为了让MyBatis映射#指定Mybatis的Mapper文件mybatis.mapper-locations=classpath:mappers/*xml#指定Mybatis的实体目录mybati
阅读全文
posted @ 2024-02-24 10:07 XiangdxDu
阅读(40)
评论(0)
推荐(0)
常见的405错误
摘要: This application has no explicit mapping for /error, so you are seeing this as a fallback.Sun Nov 05 21:36:57 CST 2023There was an unexpected error (t
阅读全文
posted @ 2024-02-24 10:06 XiangdxDu
阅读(272)
评论(0)
推荐(0)
手写Mapper的映射文件(通用)
摘要: <?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" ><ma
阅读全文
posted @ 2024-02-24 10:04 XiangdxDu
阅读(49)
评论(0)
推荐(0)
分页思路
摘要: prop 属性绑定了字段名 name,在表单验证时,就会找到其内部的表单组件绑定的变量 ruleForm.name 的值是否符合 rules 中与 name 对应的验证规则 ## 分页思路 ```SELECT * from sys_user limit 0,2; --第一页-- (2 -1) * 2
阅读全文
posted @ 2024-02-24 10:03 XiangdxDu
阅读(6)
评论(0)
推荐(0)
遇到2046 未捕获(在承诺中) 导航重复的问题
摘要: # 解决方案 vue-router.esm.js:2046 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: "/manage/user".vue-router.
阅读全文
posted @ 2024-02-24 09:58 XiangdxDu
阅读(387)
评论(0)
推荐(0)
前端跨域(通用)
摘要: ## vue安装axios: `npm i axios -S` ## request.js封装 ```import axios from 'axios' const request = axios.create({ baseURL: '/api', timeout: 5000}) // reques
阅读全文
posted @ 2024-02-24 09:56 XiangdxDu
阅读(10)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告