上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 58 下一页
摘要: 什么?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)
摘要: 目的 在编码过程中,我们常常需要写一些配置文件。而这些配置文件的格式都是固定的——关键是我通常记不住,也是找地方复制。这种方法可以,但没有必要。 因为一种方式,更简便——那就是自定义模板。例如,我们的mapper配置文件的头尾都是类似的。接下来,我们将配置Mybatis的Mapper.xml文件。 阅读全文
posted @ 2022-09-21 06:59 陆陆无为而治者 阅读(791) 评论(0) 推荐(0)
摘要: 如果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)
摘要: 1. 打开Setting—>System Setting—>HTTP Proxy。点击“check connection”,输入阿里云代理地址:https://start.aliyun.com/ 。 点击确认,可以发现很快检测成功。 2. 新建SpringBoot项目时,就选择这个地址:https: 阅读全文
posted @ 2022-09-20 07:26 陆陆无为而治者 阅读(331) 评论(0) 推荐(0)
摘要: 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)
摘要: 在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)
摘要: 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)
摘要: 最近学习到 @Component ,以及系列注解: @Controller @Service @Repository ,这些注解的作用时是实例化接口到Spring容器中。 事实上, @Controller @Service @Repository继承于 @Component ,而且没有额外的方法。 阅读全文
posted @ 2022-09-18 11:25 陆陆无为而治者 阅读(490) 评论(0) 推荐(0)
摘要: 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)
摘要: 在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 下一页