Spring流程Debug 1.1 Spring测试环境搭建 Spring模块概览,绿色是模块,Spring中八大模块,黑色表示该模块包含的jar包(组件)。例如我们想要用IOC容器,也就是绿色的CoreContainer,我们需要导入Beans,Core,Context,SpEL(spring-e ...
分类:
编程语言 时间:
2020-11-08 16:41:17
阅读次数:
17
[plain] view plaincopy public class AutoTextView extends TextSwitcher implements ViewFactory { private float mHeight; private Context mContext; //mInU ...
分类:
其他好文 时间:
2020-11-07 17:47:40
阅读次数:
32
TechRoad 1. Architecture <Java Application architecture> modular, Spring context config <EIS> technology decision, base eis-platform-brms <MS PPP> cha ...
分类:
其他好文 时间:
2020-11-07 16:51:15
阅读次数:
24
1.2.2 实例化容器(container) 为ApplicationContext 构造器提供的一个或多个路径使得容器能够从这些资源字符串中加载配置元数据从多样的外部资源位置。比如本地文件系统,类路径等。 ApplicationContext context = new ClassPathXmlA ...
分类:
编程语言 时间:
2020-11-07 16:19:28
阅读次数:
22
业务场景:中后台 虽然封装和使用了很多第三方组件,但还是免不了需要自己封装和使用很多业务组件。每次使用的时候还需要手动引入,过于麻烦 解决方法: 基于 webpack 的require.context来实现自动加载组件并注册的全局的功能 我们可以创建一个GlobalComponents文件夹,将你想 ...
分类:
其他好文 时间:
2020-11-02 09:57:26
阅读次数:
23
mybatis-spring原理解析 ? 没有spring使用Mybatis的步骤是 1:创建SqlSessionFactoryBuilder 2: 通过SqlSessionFactoryBuilder创建要给SqlSessionFactory 3: 创建SqlSession 4: 获取Mapper ...
分类:
编程语言 时间:
2020-11-01 22:01:14
阅读次数:
27
import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import androidx.annota ...
分类:
移动开发 时间:
2020-11-01 21:28:17
阅读次数:
28
常用配置 spring.profiles.active=@spring.profiles.active@ pom文件中定义的配置文件 server.port=8080 web默认访问端口 server.context-path=/demo 上下文路径 server.session.timeout=1 ...
分类:
移动开发 时间:
2020-11-01 09:19:30
阅读次数:
26
/** 原始注解:用途,自己编写的类注入容器使用* @Component* @Controller* @Service* @Repository* 以上4个功能基本一样,类似加入<bean id="userDao" class="cn.UserImpl"></bean>** @Autowired:自 ...
分类:
编程语言 时间:
2020-10-29 09:39:15
阅读次数:
24
打开系统相册:打开相册部分机型黑屏【小米9,系统10】 //打开系统相册浏览照片 val intent = Intent() intent.action = Intent.ACTION_MAIN intent.addCategory(Intent.CATEGORY_APP_GALLERY) cont ...
分类:
其他好文 时间:
2020-10-29 09:21:11
阅读次数:
17