会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lyj00436
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
···
58
下一页
2022年9月22日
SQL Server——发起HTTP请求
摘要: 什么?SQL Server也是编程语言。能够发起HTTP通信。 第一步 开启sqlServer通信组件 sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Ole Automation Procedure
阅读全文
posted @ 2022-09-22 14:22 陆陆无为而治者
阅读(959)
评论(0)
推荐(2)
2022年9月21日
Java【Mybatis】——创建Mybatis Mapper模板
摘要: 目的 在编码过程中,我们常常需要写一些配置文件。而这些配置文件的格式都是固定的——关键是我通常记不住,也是找地方复制。这种方法可以,但没有必要。 因为一种方式,更简便——那就是自定义模板。例如,我们的mapper配置文件的头尾都是类似的。接下来,我们将配置Mybatis的Mapper.xml文件。
阅读全文
posted @ 2022-09-21 06:59 陆陆无为而治者
阅读(791)
评论(0)
推荐(0)
2022年9月20日
如何在SELECT TOP 中使用变量
摘要: 如果TOP 条数是变量,直接在TOP后加变量会报错。只有将变量用括号括起来即可。 1 DECLARE @LineCount INT =2 2 SELECT TOP (@LineCount*2) * FROM sys.tables AS t
阅读全文
posted @ 2022-09-20 15:22 陆陆无为而治者
阅读(115)
评论(0)
推荐(0)
Spring initialzr Error: connect timed out解决办法
摘要: 1. 打开Setting—>System Setting—>HTTP Proxy。点击“check connection”,输入阿里云代理地址:https://start.aliyun.com/ 。 点击确认,可以发现很快检测成功。 2. 新建SpringBoot项目时,就选择这个地址:https:
阅读全文
posted @ 2022-09-20 07:26 陆陆无为而治者
阅读(331)
评论(0)
推荐(0)
2022年9月19日
Java ——列表的快速输出方法
摘要: 1 List<String> list = new ArrayList<String>(); 2 list.add("a"); 3 list.add("b"); 4 list.add("c"); 5 list.forEach(System.out::println);
阅读全文
posted @ 2022-09-19 07:37 陆陆无为而治者
阅读(212)
评论(0)
推荐(0)
Java【SpringBoot】——添加测试依赖
摘要: 在pom.xml添加依赖 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-test</artifactId> 4 <scope>test</scope> 5
阅读全文
posted @ 2022-09-19 07:07 陆陆无为而治者
阅读(577)
评论(0)
推荐(0)
Java【SpringBoot】——引入配置文件
摘要: 1 @SpringBootApplication 2 @ImportResource("classpath:bean.xml") 3 public class MySpringBootApplication { 4 5 public static void main(String[] args) {
阅读全文
posted @ 2022-09-19 06:46 陆陆无为而治者
阅读(112)
评论(0)
推荐(0)
2022年9月18日
Java【Spring】——@Component系列注解
摘要: 最近学习到 @Component ,以及系列注解: @Controller @Service @Repository ,这些注解的作用时是实例化接口到Spring容器中。 事实上, @Controller @Service @Repository继承于 @Component ,而且没有额外的方法。
阅读全文
posted @ 2022-09-18 11:25 陆陆无为而治者
阅读(490)
评论(0)
推荐(0)
2022年9月17日
SQL Server——获取当月当年的第一天和最后一天
摘要: 1 -- 当月第一天 2 select dateadd(month, datediff(month, 0, getdate()), 0) 3 -- 当月最后一天(思路:下月的第一天减去一天) 4 select dateadd(month, datediff(month, 0, dateadd(mon
阅读全文
posted @ 2022-09-17 14:23 陆陆无为而治者
阅读(3010)
评论(0)
推荐(0)
Java——Mapper报红的几种解决方法
摘要: 在Mapper接口上加上@Repository注解 例如 @Repository public interface UserMapper {
阅读全文
posted @ 2022-09-17 09:11 陆陆无为而治者
阅读(664)
评论(0)
推荐(0)
上一页
1
···
23
24
25
26
27
28
29
30
31
···
58
下一页
公告