会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
alwaysmove
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
79
下一页
2024年10月12日
springboot如何配置全局的接口返回都采用utf-8编码
摘要: 1、新建一个实现WebMvcConfigurationSupport接口的实现类 @Configuration public class MessageMvcConfiguration extends WebMvcConfigurationSupport { //覆写extendMessageCon
阅读全文
posted @ 2024-10-12 09:46 信铁寒胜
阅读(303)
评论(0)
推荐(0)
2024年10月11日
springboot如何做token的拦截校验
摘要: 1、新建一个拦截类 @Component public class LoginInterceptor implements HandlerInterceptor { @Autowired private JwtUtil jwtUtil; @Value("${oaTokenKeyword}") pri
阅读全文
posted @ 2024-10-11 16:55 信铁寒胜
阅读(204)
评论(0)
推荐(0)
如何在springboot中,全局配置produces="text/plain;charset=UTF-8"
摘要: 为什么要使用produces="text/plain;charset=UTF-8"? 当不用这个配置时,接口返回的数据,是有斜杠的 配置后,就正常了 以前我的配置方式,是在每个接口上,都添加上produces="text/plain;charset=UTF-8"。但是这样显示不太好,每个接口都加的话
阅读全文
posted @ 2024-10-11 15:51 信铁寒胜
阅读(537)
评论(0)
推荐(0)
2024年10月10日
如何将React项目,部署到Web服务器的Tomcat 上
摘要: 将 React 应用部署到 Tomcat 服务器上通常需要将其构建为静态文件,然后将这些文件放入 Tomcat 的 webapps 目录。以下是具体步骤: 步骤指南 1. 构建 React 应用 首先,你需要在本地构建你的 React 应用。 npm run build 这会在项目根目录下生成一个
阅读全文
posted @ 2024-10-10 13:17 信铁寒胜
阅读(396)
评论(0)
推荐(0)
vscode设置成中文界面
摘要: 通过快捷键设置中文打开VSCode:同样,首先确保你已经打开了VSCode软件。打开命令面板:按住键盘上的“Ctrl+Shift+P”组合键,打开命令面板。输入并设置语言:在命令面板中输入“Configure Display Language”。点击“Configure Display Langua
阅读全文
posted @ 2024-10-10 10:43 信铁寒胜
阅读(584)
评论(0)
推荐(0)
2024年10月9日
mybatis+oracle 批量插入多条数据的处理方法
摘要: 1、oracle的处理方法是sqlServer 不太一样,是下面这种写法 <insert id="insertOAStaffs" parameterType="java.util.List"> INSERT ALL <foreach collection="list" item="staff"> I
阅读全文
posted @ 2024-10-09 14:24 信铁寒胜
阅读(393)
评论(0)
推荐(0)
springboot 加mybatis 配置多数据源
摘要: 案例:比如说,接口接收到的数据,放到多个数据库。 1、先引入dynamic <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <ve
阅读全文
posted @ 2024-10-09 10:24 信铁寒胜
阅读(385)
评论(0)
推荐(0)
springboot 添加@Test(org.junit.Test) 注解后,idea右键菜单,没有运行项
摘要: 网上试了很多办法,包括检查idea的junit插件是否已安装,我安装了也用不了 清除idea 缓存,也不行。 后来将org.junit.Test 换成 org.junit.jupiter.api.Test 就可以了。 maven 引入包(注意这里版本换成5.9.3后,不行) 合适的版本吗,你去掉以为
阅读全文
posted @ 2024-10-09 09:46 信铁寒胜
阅读(297)
评论(0)
推荐(0)
Cannot find current proxy: Set 'exposeProxy' property on Advised to 'true' to make it available, and ensure that AopContext.currentProxy() is invoked in the same thread as the AOP invocation context
摘要: 这个错误通常发生在使用 Spring AOP 时,尤其是当你尝试访问 AopContext.currentProxy(),但当前代理对象不可用时。下面是一些解决此问题的建议: 1. 启用 exposeProxy 属性 确保你的 AOP 配置中设置了 exposeProxy 属性为 true。这可以在
阅读全文
posted @ 2024-10-09 09:38 信铁寒胜
阅读(1066)
评论(0)
推荐(0)
2024年10月8日
Field bkCustomApiLogMapper in XXXXX required a bean of type 'XXXXX' that could not be found.
摘要: 1、springboot 项目启动报错 Description: Field bkCustomApiLogMapper in com.bak.service.log.BKCustomApiLogService required a bean of type 'com.bak.dao.BKCustom
阅读全文
posted @ 2024-10-08 14:44 信铁寒胜
阅读(19)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
79
下一页
公告