摘要: 1 #是将传入的值当做字符串的形式,eg:select id,name,age from student where id =#{id},当前端把id值1,传入到后台的时候,就相当于 select id,name,age from student where id ='1'. 2 $是将传入的数据直 阅读全文
posted @ 2019-10-25 00:06 霸气小青年 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-31 14:45 霸气小青年 阅读(169) 评论(0) 推荐(0) 编辑
摘要: SpringMVC的工作原理图: SpringMVC流程 1、 用户发送请求至前端控制器DispatcherServlet。 2、 DispatcherServlet收到请求调用HandlerMapping处理器映射器。 3、 处理器映射器找到具体的处理器(可以根据xml配置、注解进行查找),生成处 阅读全文
posted @ 2019-07-09 22:59 霸气小青年 阅读(66767) 评论(5) 推荐(9) 编辑
摘要: 阅读全文
posted @ 2019-05-25 17:43 霸气小青年 阅读(107) 评论(0) 推荐(0) 编辑
摘要: String code = new String("abc123号"); code=code.replace("号", ""); Pattern pattern = Pattern.compile("\\d+$"); Matcher matcher = pattern.matcher(code); 阅读全文
posted @ 2019-04-16 16:59 霸气小青年 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 第一步:编写Controller,让后台去请求接口 package controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired;import org.springfr 阅读全文
posted @ 2019-04-04 17:02 霸气小青年 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 5A02H-AU243-TZJ49-GTC7K-3C61N 新版本密室:FF31K-AHZD1-H8ETZ-8WWEZ-WUUVA 阅读全文
posted @ 2019-04-03 10:51 霸气小青年 阅读(191) 评论(0) 推荐(0) 编辑
摘要: SpringMVC的工作原理图: SpringMVC流程 1、 用户发送请求至前端控制器DispatcherServlet。 2、 DispatcherServlet收到请求调用HandlerMapping处理器映射器。 3、 处理器映射器找到具体的处理器(可以根据xml配置、注解进行查找),生成处 阅读全文
posted @ 2019-03-13 10:41 霸气小青年 阅读(7979) 评论(0) 推荐(1) 编辑
摘要: 同一时间执行多一线程 进程:是程序一次动态的执行 进程的特点: ①进程是系统运行的基本单位 ②每一进程都有自己独立的一块内存空间,一组系统资源 ③每一进程的内部数据和状态都是完全独立的 线程:线程是进程中执行运算的最小单位 使用线程的四个步骤 1.定义一个线程,同时指明这个线程所要执行的代码 2.创 阅读全文
posted @ 2019-03-13 10:40 霸气小青年 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 启动服务:net start mysql56 关闭服务:net stop mysql56 登入服务器: Mysql -u root -p 创建备份:mysqldump -u root -p house >d:house.sql 还原数据库:mysql -u root -p house <d:hous 阅读全文
posted @ 2019-03-13 10:38 霸气小青年 阅读(94) 评论(0) 推荐(0) 编辑