摘要: 1.安装专门的mod_ssl模块 [root@contos7 ~]# yum install mod_ssl Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Resolving D 阅读全文
posted @ 2019-11-21 11:42 霸气小青年 阅读(286) 评论(0) 推荐(0)
摘要: 一、WebMvcConfigurerAdapter是什么Spring内部的一种配置方式采用JavaBean的形式来代替传统的xml配置文件形式进行针对框架个性化定制 二、WebMvcConfigurerAdapter常用的方法/** 解决跨域问题 **/public void addCorsMapp 阅读全文
posted @ 2019-11-19 09:42 霸气小青年 阅读(1108) 评论(0) 推荐(0)
摘要: 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 霸气小青年 阅读(366) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-08-31 14:45 霸气小青年 阅读(173) 评论(0) 推荐(0)
摘要: SpringMVC的工作原理图: SpringMVC流程 1、 用户发送请求至前端控制器DispatcherServlet。 2、 DispatcherServlet收到请求调用HandlerMapping处理器映射器。 3、 处理器映射器找到具体的处理器(可以根据xml配置、注解进行查找),生成处 阅读全文
posted @ 2019-07-09 22:59 霸气小青年 阅读(66978) 评论(5) 推荐(9)
摘要: 阅读全文
posted @ 2019-05-25 17:43 霸气小青年 阅读(124) 评论(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 霸气小青年 阅读(253) 评论(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 霸气小青年 阅读(671) 评论(0) 推荐(0)
摘要: 5A02H-AU243-TZJ49-GTC7K-3C61N 新版本密室:FF31K-AHZD1-H8ETZ-8WWEZ-WUUVA 阅读全文
posted @ 2019-04-03 10:51 霸气小青年 阅读(202) 评论(0) 推荐(0)
摘要: SpringMVC的工作原理图: SpringMVC流程 1、 用户发送请求至前端控制器DispatcherServlet。 2、 DispatcherServlet收到请求调用HandlerMapping处理器映射器。 3、 处理器映射器找到具体的处理器(可以根据xml配置、注解进行查找),生成处 阅读全文
posted @ 2019-03-13 10:41 霸气小青年 阅读(8041) 评论(0) 推荐(1)