会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
stevenduxiang
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2024年5月18日
MySql与SqlServe的查询语句中的参数用一下符号
摘要: 用?@ select * from Table where username = ?或者select * from Table where username = @username
阅读全文
posted @ 2024-05-18 10:21 XiangdxDu
阅读(6)
评论(0)
推荐(0)
2024年5月15日
mybatis及mybatis-plus的实体映射
摘要: package com.duxiang.backgroundmanagement.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; 1.mybatis impo
阅读全文
posted @ 2024-05-15 17:03 XiangdxDu
阅读(59)
评论(0)
推荐(0)
2024年5月9日
前端代理
摘要: 在vue.config.js中const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, devServer:{ port:9090
阅读全文
posted @ 2024-05-09 12:34 XiangdxDu
阅读(9)
评论(0)
推荐(0)
2024年4月30日
SqlSugar与数据库交互官网
摘要: SqlSugar .Net ORM 5.X 官网 、文档、教程 - SqlSugar 5x - .NET果糖网 (donet5.com)
阅读全文
posted @ 2024-04-30 09:29 XiangdxDu
阅读(212)
评论(0)
推荐(0)
2024年4月29日
vue设置端口号
摘要: // 在vue.config.js中 const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, devServer: { port
阅读全文
posted @ 2024-04-29 18:57 XiangdxDu
阅读(47)
评论(0)
推荐(0)
2024年4月28日
阿里云短信服务
摘要: public static com.aliyun.dysmsapi20170525.Client createClient(String accessKeyId, String accessKeySecret) throws Exception { // 创建短信服务客户端并返回 // 创建一个配置
阅读全文
posted @ 2024-04-28 12:43 XiangdxDu
阅读(46)
评论(0)
推荐(0)
2024年4月23日
导入图片
摘要: @PostMapping("/uploadExercise") public ResponseEntity<String> uploadExercise(@RequestParam MultipartFile file, @RequestParam("exercise_id") int exerci
阅读全文
posted @ 2024-04-23 14:10 XiangdxDu
阅读(19)
评论(0)
推荐(0)
通过写入实体进行导出
摘要: @GetMapping("/exportScore") public void exportScore(HttpServletResponse response) throws Exception { // 从数据库查询出所有的数据 List<Score> list = scoreService.g
阅读全文
posted @ 2024-04-23 14:07 XiangdxDu
阅读(10)
评论(0)
推荐(0)
2024年4月22日
通用的后端返回给前端的状态信息Result
摘要: package com.duxiang.backgroundmanagement.common;/** * 返回消息 */public class Result { private static final String SUCCESS = "0"; private static final Str
阅读全文
posted @ 2024-04-22 12:26 XiangdxDu
阅读(39)
评论(0)
推荐(0)
Java开启事务(@Transactional)
摘要: 开始事务的代码可以使用 Spring 的事务管理器来实现。具体步骤如下: 1. 在 Spring 配置文件中配置事务管理器和事务通知器: ```<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataS
阅读全文
posted @ 2024-04-22 10:10 XiangdxDu
阅读(706)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告