Alex_TD

02 2020 档案

Springboot--maven命令子模块单独打包
摘要:1.查看denpendency:tree : mvn denpendency:tree 2.运行springboot: mvn spring-boot:run 3.打包命令: mvn package 4.运行springboot jar包: java -jar springboot-xxx.jar 阅读全文

posted @ 2020-02-29 21:16 Alex_TD 阅读(4112) 评论(0) 推荐(0)

Springboot----属性配置(properties和yaml)
摘要:1.application.properties 文件 @Value 读取 属性 2.自定义properties文件读取: @PropertySource("classpath:xxx.properties") @Value("${}") 3.application.yaml文件 @Configur 阅读全文

posted @ 2020-02-26 23:00 Alex_TD 阅读(306) 评论(0) 推荐(0)

VUE---1
摘要:1.VUE:可以把变量绑定的HTML CSS 的任何地方。DOM 的文本和属性都可以绑定。并且可以通过方法操作变量来改变DOM的属性。 2.直接绑定:{{ msg }}学习后端改模板 流程绑定 v-if v-for 都是操作变量。 v-on:事件 BOM定义的事件可以click 等等可以响应式编程。 阅读全文

posted @ 2020-02-25 23:01 Alex_TD 阅读(109) 评论(0) 推荐(0)

前端 HTML CSS Js
摘要:1.Html 标签 表单 input等 2.CSS :sass less 编写工具 标签修饰语言 漂亮的动画 等 3.Javascript: ES6 对象的概念: {a:3,b:function(){},c:this } Object: 包含的方法:Object.defineProperty() 属 阅读全文

posted @ 2020-02-25 22:36 Alex_TD 阅读(128) 评论(0) 推荐(0)

Springmvc===整合问题总结
摘要:1. 过滤字符编码 org.spring <filter> <filter-name>characterEncoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filte 阅读全文

posted @ 2020-02-23 22:25 Alex_TD 阅读(301) 评论(0) 推荐(0)

Springmvc---整合(servlet jsp mybatis c3p0池化 mysql de
摘要:1.导入包 <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.4</version> </dependency> <!-- https://mvnreposi 阅读全文

posted @ 2020-02-23 22:11 Alex_TD 阅读(215) 评论(0) 推荐(0)

Springmvc===JSON
摘要:1.js : JSON.parse(json) Json.stringify(obj) 2.jackson: OjbectMapper json= new ObjectMapper() 解决乱码: @RequestMapping(value="createExcel",produces="plain 阅读全文

posted @ 2020-02-23 13:40 Alex_TD 阅读(119) 评论(0) 推荐(0)

Springmvc----处理乱码过滤器CharcterEncodingFilter
摘要:Springmvc 处理乱码过滤器CharcterEncodingFilter : web.xml <servlet-mapping> <servlet-name>mvc</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> < 阅读全文

posted @ 2020-02-23 12:57 Alex_TD 阅读(275) 评论(0) 推荐(0)

Springmvc---Controller(HttpServletRequest req,HttpServletResponse resp) 重定向和转发
摘要:1.重定向和转发: redirect:"test" 相对路径 跳转路径 forward:/test 项目内 相对路径转发 路径不跳转,转发 2.controller ( req,resp,Model) |(req,resp,ModelMap) ModelMap extends LinkedModel 阅读全文

posted @ 2020-02-23 12:01 Alex_TD 阅读(487) 评论(0) 推荐(0)

Springmvc---2
摘要:1.导入springmvc相关的jar包(框架servlet的 springwebmvc aop jdbc mybatis ) 2.配置web.xml,配置spring.xml (配置tomcat的入口DispatcherServlet 。doService(req,res)包含applicatio 阅读全文

posted @ 2020-02-23 10:40 Alex_TD 阅读(65) 评论(0) 推荐(0)

Servlet web
摘要:回顾: 1.M(dao service) v(views) c(controller) html/CSS 》 servlet(转发,重定向) 》 controller ==》 service dao pojo: 实体类 User 字段少 vo:视图层类 UserView类 字段面向前端 dto :数 阅读全文

posted @ 2020-02-22 11:55 Alex_TD 阅读(78) 评论(0) 推荐(0)

Redis---1
摘要:学习方法: 1.数据类型 2.数据库结构: 3数据存取方法: 4数据库函数 5.测试 1.Redis 数据类型:String List Set 有序set hash(hashmap){k:{k:v}} 5种数据类型。 2.没有数据表的概念。 3.安装:linux 命令apt-get install 阅读全文

posted @ 2020-02-22 11:00 Alex_TD 阅读(103) 评论(0) 推荐(0)

C# 多态
摘要:字段 和属性的区别: 字段是值类型和引用类型, 属性是方法操作。 访问器 自动属性 抽象属性 1.类自动属性语法糖:1. prop 两次tab get ;set 自动生成。 类继承 继承所有方法,可以调用。 2.类初始化语法糖: new 对象(){属性1= 1,属性2=“c#”’} new int[ 阅读全文

posted @ 2020-02-22 10:43 Alex_TD 阅读(159) 评论(0) 推荐(0)

Idea 的Tomcat虚拟路径修改问题
摘要:windows 自带截图快捷键: win+shift+s Idea intellij 的Tomcat 配置的虚拟路径:Application context:/servletjsp_war 每一个项目都会在Idea的目录下生产对应的web项目目录在:修改path为空,然后把上面的虚拟路径改成/ 阅读全文

posted @ 2020-02-21 20:49 Alex_TD 阅读(470) 评论(0) 推荐(0)

Mybatis---事务(AOP注入事务)
摘要:1.通过Spring 的声明式事务注入方式 : 需要XML引入tx标签 引入头部约束链接: spring所有的事务管理策略类都继承自org.springframework.transaction.PlatformTransactionManager接口 <?xml version="1.0" enc 阅读全文

posted @ 2020-02-21 15:27 Alex_TD 阅读(579) 评论(0) 推荐(0)

Spring-----Mybatis-通过Sqlsessionsupport
摘要:org.springframework.context.support.AbstractApplicationContext refresh警告: Exception encountered during context initialization - cancelling refresh att 阅读全文

posted @ 2020-02-21 14:16 Alex_TD 阅读(272) 评论(0) 推荐(0)

Spring ---Mabatis
摘要:1。Mybatis 的环境搭建流程: 1.导入包jar 2.创建实体类 3.创建配置文件 4.写接口,接口映射器 5.测试 1.导入包:1.Junit.jar 2 mysql-connector-java.jar 3.mybatis.jar 4.spring-jdbc.jar 5.spring-we 阅读全文

posted @ 2020-02-21 14:04 Alex_TD 阅读(114) 评论(0) 推荐(0)

Spring ---AOP(2)
摘要:方法二: 1.创建对象Aopdemo 方法 show(){...} 2.添加 <bean id="aopdemo" class="com....."/> <aop:config > <aop:aspect ref="aopdemo"> <aop:pointcut id="os" expression 阅读全文

posted @ 2020-02-20 20:21 Alex_TD 阅读(106) 评论(0) 推荐(0)

Spring---面向切面编程(AOP)
摘要:IOC AOP Spring 不管什么的学习都要先搭建环境 先搭建环境 先搭建环境。Spring 对JDK代理 和CGlib代理都支持,先JDK代理,后CGLIB代理 1.导入依赖 导入依赖 <dependency> <groupId>aspectj</groupId> <artifactId>as 阅读全文

posted @ 2020-02-20 18:10 Alex_TD 阅读(125) 评论(0) 推荐(0)

Spring(spring5 framework)代理模式
摘要:1.代理模式分类: 1.静态代理:接口, 接口实现,接口实现代理对象(传参 ) 。 代理类和各种实现类 具有相同的祖宗==》猴, 你和代理类具有相同的方法,就可以让代理帮你了,代理买的方法中嵌套你的实现。 2.动态代理:1.JDK实现 (针对所有有接口的实现类)2.CGlib (code gener 阅读全文

posted @ 2020-02-20 15:20 Alex_TD 阅读(167) 评论(0) 推荐(0)

NPM 安装 删除模块命令
摘要:1.安装模块命令: npm install -g @vue/cli //-g 全局安装 --save 保存到package.json 2.删除模块命令: npm uninstall -g @vue/cli 3.查看npm模块列表: npm list -g --depth 0 递归0层 全局位置的模块 阅读全文

posted @ 2020-02-19 20:50 Alex_TD 阅读(1293) 评论(0) 推荐(0)

Spring ----JavaConfig类代替XML配置Bean
摘要:1.使用JavaConfig实现Bean对象创建: 通过Spring ApplicationContext的另一个容器AnnotationConfigurationApplicationContext的实现类 ApplicationContext ac= new AnnotationConfigur 阅读全文

posted @ 2020-02-19 18:41 Alex_TD 阅读(698) 评论(0) 推荐(0)

Spring---注解开发
摘要:1.配置文件里加入: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSche 阅读全文

posted @ 2020-02-19 17:29 Alex_TD 阅读(139) 评论(0) 推荐(0)

Spring-----注解实现自动装配(自动匹配属性类型) @Autowired 和 autowire
摘要:1.注解:实现Bean的属性装配 实现注解开发自动装配步骤: 1.导入XML 配置文件头部 约束 增加命名空间 注解支持 2.注解的支持 <context:annotation-config> XML导入头命名空间 连接 <?xml version="1.0" encoding="UTF-8"?> 阅读全文

posted @ 2020-02-19 16:22 Alex_TD 阅读(1387) 评论(0) 推荐(0)

Spring ----Bean的自动装配
摘要:1.Bean的属性的自动装配: (bean对象的属性赋值) 1.XML配置文件中 在XML中 用构造函数 set方式 p c 方式赋值 2.Java中显示装配 3.隐式的装配Autowire 2.注入自动匹配 属性:autowire =true(按类中变量名匹配bean中的id)(按类中变量类型匹配 阅读全文

posted @ 2020-02-19 15:32 Alex_TD 阅读(117) 评论(0) 推荐(0)

Spring ----Bean 的作用域
摘要:Scope 作用域:<bean id="hello" class="com.xx.Hello" scope=" singleton"> </bean> 1.单例(默认)singleton 创建后 只存在一个类实例 2.原型 prototype 创建后 存在多个类实例 3.请求 request 4.会 阅读全文

posted @ 2020-02-19 14:26 Alex_TD 阅读(95) 评论(0) 推荐(0)

Sring---注入方式
摘要:1.bean.xml 创建完成成为Spring的bean的配置文件,通过Spring容器类 加载配置文件 使用。 注: 依赖注入:1.依赖:bean对象的创建依赖spring容器。 2.注入:bean对象中的所有属性,由容器来注入。 注入方式:1.构造器注入:3种方式 2.set注入:必须要有无参构 阅读全文

posted @ 2020-02-19 14:19 Alex_TD 阅读(196) 评论(0) 推荐(0)

配置文件编译问题:扫描包的问题 和 编译字符编码问题 和编译器版本1.5问题
摘要:配置文件编译问题:扫描包的问题 和 编译字符编码问题 和编译器版本1.5问题<build > <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</includ 阅读全文

posted @ 2020-02-19 14:14 Alex_TD 阅读(149) 评论(0) 推荐(0)

Spring ----XML的配置说明
摘要:1.别名 给id 起别名: <bean id="hello" class="com.chen.pojo.Hello"> <property name="id" value="1"/> <property name="name" value="lll"/> </bean><alias name="he 阅读全文

posted @ 2020-02-19 12:55 Alex_TD 阅读(147) 评论(0) 推荐(0)

Spring-Bean 创建对象的方式
摘要:1.通过无参构造函数创建(默认) 2.通过有参构造创建 1.constructor 的index赋值 <bean id="user" class="com.c.pojo.user"> <constructor-arg index= 0 value=" "> </bean> 2.constructor 阅读全文

posted @ 2020-02-19 12:44 Alex_TD 阅读(235) 评论(0) 推荐(0)

Spring ----IOC
摘要:1.spring : 对象交由Spring 创建 管理 装配 core: Bean container aop: orm he dao: web: context: mvc: 2.IOC:控制反转 IOC容器(ApplicationContent) DI 依赖注入 3.XML配置模式,在XML中配置 阅读全文

posted @ 2020-02-18 22:15 Alex_TD 阅读(65) 评论(0) 推荐(0)

Mybatis 缓存
摘要:1.一级缓存默认开启,存在于一个sqlsession 会话中, sqlsession查完会被关闭。 2.二级缓存:基于namespace 范围, 在Mapper XML中配置。 二级缓存 方式:1FIFO 2 最近最少用LRU,3 SOFT。。。4.WEAK 一级缓存查完后,丢入二级缓存,再查从二级 阅读全文

posted @ 2020-02-18 20:01 Alex_TD 阅读(90) 评论(0) 推荐(0)

Mybatis---SQL 动态
摘要:1.数据库驼峰命名转换:<setting name="mapUndersorceToCamelCase" value="true"> 2.数据库id随机生成:UUID.randomUUID().toString().replaceAll("-",""); //bfd1cc7f9dbe438db9eb 阅读全文

posted @ 2020-02-18 19:37 Alex_TD 阅读(77) 评论(0) 推荐(0)

Mybaits-----多对一
摘要:1. 学生表 (id,name,teacherid) 和老师表 (id,name) select id,name,teachername from stu,teacher where stu.teacherid=teacher.id; 注意:Pojo 要包含无参构造函数,很重要 ResultMap 阅读全文

posted @ 2020-02-18 17:53 Alex_TD 阅读(98) 评论(0) 推荐(0)

动态代理模式之=====接口代理
摘要:1.Proxy.newInstance(ClassLoader[] , new Class[] interfaces,InvocationHandler h) 2.InvocationHandler 实现类 invoke( Object proxy,Method method,Object[] .. 阅读全文

posted @ 2020-02-18 13:19 Alex_TD 阅读(270) 评论(0) 推荐(0)

Mybatis----注解方式开发
摘要:1注解开发: @select ( “select * from user where id=#{id} and name=#{user}”) User getUserList(@Param("id2") int id,@Param("user") String name) :@Param :应该是防 阅读全文

posted @ 2020-02-17 19:14 Alex_TD 阅读(161) 评论(0) 推荐(0)

Mybaits-----Limit分页
摘要:1.分页显示: select * from user limit 当前页=pagesize*(i-1),页面数据条数; 总页数=(数据总条数+pagesize-1)/pagesize 或者 (int) Math.ceil((double)总条数/pagesize) 2.rowbounds 3.前端实 阅读全文

posted @ 2020-02-17 17:44 Alex_TD 阅读(92) 评论(0) 推荐(0)

Mybatis---log4j
摘要:1.日志配置:<settings> <setting name="logImpl" value="STDOUT_LOGGING"/>//自带日志 <setting name="logImpl" value="LOG4J"/>//第三方日志</settings>2.配置文件:log4j.propert 阅读全文

posted @ 2020-02-17 17:24 Alex_TD 阅读(116) 评论(0) 推荐(0)

Mybatis----ResultMap 结果集
摘要:1.实体类和数据库列的名称不一致的解决方式:(注:mybaitis的类型处理器,java类型和数据库类型转换问题?) 1.数据库查询语句:给列起别名(和实体类属性名一致) 2.Mapper配置中:ResultMap: 结果集映射:解决实体类和数据库列之间的映射关系 <resultMap id="Us 阅读全文

posted @ 2020-02-17 14:39 Alex_TD 阅读(361) 评论(0) 推荐(0)

Mybatis--生命周期作用域
摘要:1.生命周期和作用域: 1.SqlSessionFactoryBuilder 创建完成 SqlSessionFactory 就可以释放了 2.SqlSessionFactory: 相当于保存数据库会话的线程池。 一旦创建就应该在程序的运行期间一致存在。 不得丢弃和创建另一个实例。 使用单例或者静态单 阅读全文

posted @ 2020-02-17 13:53 Alex_TD 阅读(126) 评论(0) 推荐(0)

Mybatis---注意事项及配置类属性
摘要:1.注意事项:Mapper 里字符串用""双引号, select * from table where concat(col1,col2) like "%"#{col3}"%"; select count(id) from table; 1.实体类的属性名和数据库字段一致 2.绑定映射resourc 阅读全文

posted @ 2020-02-17 13:19 Alex_TD 阅读(309) 评论(0) 推荐(0)

Mybatis---1
摘要:一。 创建数据库: 1. create database if not exists `mybatis` default character set utf8 default collate utf8_general_ci; 2. show create database mybatis; 3. u 阅读全文

posted @ 2020-02-15 19:53 Alex_TD 阅读(178) 评论(0) 推荐(0)

Mysql----JDBC 连接池 DBCP C3P0
摘要:1.数据库连接池: 连接池容量 最大连接数 最小连接数 排队机制 超时 1.实现DataSource 接口 2.DBCP //1.配置 Properties文件,2.创建连接池工厂方法。3.操作数据库一样。 半自动? DataSource datesourc= BasicDataSourceFact 阅读全文

posted @ 2020-02-14 19:44 Alex_TD 阅读(103) 评论(0) 推荐(0)

Mysql----Java JDBC
摘要:1. import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class Demo{ public stati 阅读全文

posted @ 2020-02-14 18:36 Alex_TD 阅读(101) 评论(0) 推荐(0)

Mysql--- 权限管理和备份
摘要:1.权限管理:root 创建用户: create user chen identified by '123456 修改密码: update mysql.user set authentication_string='123456' where Host='localhost' and User='r 阅读全文

posted @ 2020-02-13 21:35 Alex_TD 阅读(185) 评论(0) 推荐(0)

Mysql---9 分页和排序
摘要:1.分页 limit offset 和排序 order by desc 降序 asc 升序 select a.1,2,3,4 from a inner join b on a.1=b.1 inner join c on c.2=b.2 where 3='xxx' order by 4 desc (a 阅读全文

posted @ 2020-02-13 18:40 Alex_TD 阅读(167) 评论(0) 推荐(0)

Mysql--13 索引
摘要:1.索引:提高获取数据速度 索引分类: 1.主键索引:primary key 唯一,主键唯一,一个表只能有一个列作为主键。 2.唯一索引:unique key 可以标注多列为唯一索引, 3.常规索引:(key /index)key 索引名(字段名) 4.全文索引: fulltext index 索引 阅读全文

posted @ 2020-02-13 17:11 Alex_TD 阅读(256) 评论(0) 推荐(0)

Mysql ---12 事务
摘要:1.事务: 多条数据库操作语句DML DQL同时成功或同时失败 参考文章:https://blog.csdn.net/Jocker_D/article/details/87384673 原子性:成功都成功,失败都失败 一致性:多用户数据一致 持久性:事务提交或未提交前后数据 隔离性: 多用户互不影响 阅读全文

posted @ 2020-02-13 15:53 Alex_TD 阅读(167) 评论(0) 推荐(0)

Mysql ---11(聚合函数)
摘要:1.聚合函数: select * from user where concat(use,addr) like "%"#{name}"%"; 1.count() count(字段)忽略所有null count(*) 不忽略null count(1) 不忽略null 2.sum() 3.avg() 4. 阅读全文

posted @ 2020-02-13 15:01 Alex_TD 阅读(134) 评论(0) 推荐(0)

Mysql---10 运算 字符串 日期 加密 系统相关函数
摘要:1.子查询和嵌套查询: where id=(嵌套查询) 常用函数: 1.ABS(-10) 10 2.CELLING(10.2) 11 3.floor(10.2) 10 4.rand() ==随机0-1 5.sign(-10)==负数返回-1 正数返回 1 6.char_length('fdsfadf 阅读全文

posted @ 2020-02-13 14:29 Alex_TD 阅读(150) 评论(0) 推荐(0)

Mysql----8 联表查询 嵌套查询 inner join on left join on right join on
摘要:1.联表查询 必须多表要有相同的列 (多表查询) select a.name,sex,password from 表1 as a inner join 表2 as b on a.name=b.name; select a.name ,password, sex from 表1 as a left j 阅读全文

posted @ 2020-02-13 13:29 Alex_TD 阅读(756) 评论(0) 推荐(0)

Mysql---7 where 条件语句
摘要:1.where 条件 1.and && or || Not ! where Nnot Id='001'; 2. is NULL > id is null is null ' '; is not NULL > id is not null between and > id between a and 阅读全文

posted @ 2020-02-13 11:45 Alex_TD 阅读(124) 评论(0) 推荐(0)

Mysql---6 Select 查询数据的方式
摘要:1.DQL select 指定查询字段: select * from 表名; select * from 表名 where username='xxxx'; select * from 表名 where username is NULL; select username as ‘用户名’,passw 阅读全文

posted @ 2020-02-13 11:14 Alex_TD 阅读(169) 评论(0) 推荐(0)

Mysql---5(DML) 外键constraint不推荐 表中数据的insert into values update set where delete from where truncate
摘要:1.constraint FK_keyname foreign key (key name) reference table2(`key`) 数据库级别的外键不建议使用 2.DML 插入表数据: insert into tablename(key1,key2,..)values(value1,val 阅读全文

posted @ 2020-02-12 20:23 Alex_TD 阅读(161) 评论(0) 推荐(0)

Mysql---4 修改表字段操作(增,删,改,重命名)
摘要:1.修改表名: alter table [表1] rename as [表2] 2.增加表字段: alter table [table1] add column 列名 INT(4)--数据类型 3.修改表字段:change 重名字段名 modify 修改字段数据类型和约束 alter table [ 阅读全文

posted @ 2020-02-12 15:49 Alex_TD 阅读(1179) 评论(0) 推荐(0)

Mysql ---3创建表
摘要:1.创建表:注意:` ` ' ' , 三种符号 if not exists primary key(`id`)engine= innodb charset=utf8 create table if not exists `stu`( `id` int(4) auto_increment commen 阅读全文

posted @ 2020-02-12 15:05 Alex_TD 阅读(183) 评论(0) 推荐(0)

Mysql---2 DDL DML DQL DCL
摘要:1.DDL database definition language default charset utf8 collate utf8_general_ci; create database; create table; create view alter table; alter drop da 阅读全文

posted @ 2020-02-12 14:30 Alex_TD 阅读(154) 评论(0) 推荐(0)

Mysql数据库--1数据库操作
摘要:1.DBMS : 数据库安装mysql8.0 2.数据库操作》linux mysql服务启动:service mysql start ==>1.数据库命令: ==》1.数据库连接命令: mysql -uroot -p1234 -P3306 (-u 用户名 -p 密码 -P 端口号) ==>2.数据库 阅读全文

posted @ 2020-02-12 12:02 Alex_TD 阅读(140) 评论(0) 推荐(0)

FFmpeg
摘要:ffmpeg -rtsp_trasport tcp -i "rtsp://username:password@ip:554" -y -ss 1 -q:v 2 -f image2 -vframes 1 pic%03d.jpeg -rtsp_transport tcp : tcp 防止花屏 -ss :截 阅读全文

posted @ 2020-02-11 18:24 Alex_TD 阅读(109) 评论(0) 推荐(0)

Servlet Web
摘要:1.ServletContext HttpServlet Session Cookie ServletConfig HttpServletRequest HttpServletResponse ServletRequest ServletResponse (1) ServletContext : g 阅读全文

posted @ 2020-02-11 13:03 Alex_TD 阅读(86) 评论(0) 推荐(0)