1.入门方法 第一步:mybatis全局环境配置 configurs.xml 修改数据库接口信息 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3. ...
分类:
移动开发 时间:
2020-02-11 09:48:42
阅读次数:
92
Spring配置文件是applicationContext.xml,怎么样利用Eclipse快速生成Spring的配置文件呢? 首先假设Eclipse已经安装好了Spring的插件,在项目文件右击NEW-Other,在向导中选择Spring Bean Configuration File,Sprin ...
分类:
编程语言 时间:
2020-02-09 18:11:24
阅读次数:
76
1.需要导入的jar包 1)mybatis核心包 2)mybatis依赖包 3)数据库驱动包 如下图所示 : 2.配置文件: SqlMapConfig.xml: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE configuration 3 ...
分类:
其他好文 时间:
2020-02-06 22:47:37
阅读次数:
81
1、Spring Boot基本概念 2、什么是约定优于配置 3、从Spring常见的注解切入 @Configuration / @ComponentScan 4、SpringBoot核心自动装配的原理 5、Spring中的SOP之SpringFactoriesLoader 6、SpringBoot核 ...
分类:
编程语言 时间:
2020-02-05 20:01:09
阅读次数:
54
打开idea发现项目启动不了了,出现了这个错误:Module is not specified 解决如下:Edit Configuration -> Configuration -> Use classpath of module -> 选择你当前的module -> Apply就可以了 ...
分类:
其他好文 时间:
2020-02-05 18:39:28
阅读次数:
143
debug redmine send email procedure production.log shows modify password in /redmine/config/configuration.yml reboot remine How to config the logger le ...
分类:
其他好文 时间:
2020-02-05 13:36:08
阅读次数:
87
ImportSelectorImportSelector接口是Spring导入外部配置的核心接口,在SpringBoot的自动化配置和@EnableXXX(功能性注解)中起到了决定性的作用。当在@Configuration标注的Class上使用@Import引入了一个ImportSelector实现 ...
分类:
编程语言 时间:
2020-02-05 11:29:58
阅读次数:
104
```bash ! Configuration File for keepalived global_defs { router_id LVS_DEVEL } vrrp_script check_haproxy { script "killall -0 haproxy" #执行这条命令,判断返回值,... ...
分类:
其他好文 时间:
2020-02-04 23:38:20
阅读次数:
139
组件注册 1、@Configuration&@Bean给容器中注册组件 2、@ComponentScan-自动扫描组件&指定扫描规则 3、自定义TypeFilter指定过滤规则 4、@Scope-设置组件作用域 5、@Lazy-bean懒加载 6、@Conditional-按照条件注册bean 7、 ...
分类:
编程语言 时间:
2020-02-02 23:37:25
阅读次数:
95
package cn.itcast.hadoop.mr;import java.io.IOException;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.Path;import org.apache. ...
分类:
其他好文 时间:
2020-02-02 23:19:55
阅读次数:
98