上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 1本地仓库的配置 设置本地仓库为该路径E:\mvn_repository apache-maven-3.6.1-->conf/settings.xml文件 加入:<localRepository>E:\mvn_repository</localRepository> IDEA中设置: 每次创建项目时 阅读全文
posted @ 2020-05-25 11:34 gaoshengjun 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Service层 Servlet层 前端页面 阅读全文
posted @ 2020-05-23 15:05 gaoshengjun 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Lucene快速入门代码 package cn.itcast.javaee.lucene.firstapp; import cn.itcast.javaee.lucene.entity.Article; import org.apache.lucene.analysis.Analyzer; impo 阅读全文
posted @ 2020-05-23 13:54 gaoshengjun 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1.1,什么是Redis: 参看:https://www.runoob.com/redis/redis-java.html Redis是一个开源的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息的中间件。支持多种数据结构。 字符串Strings 散列 hash , 列表lists, 集合se 阅读全文
posted @ 2020-05-23 13:48 gaoshengjun 阅读(285) 评论(0) 推荐(0) 编辑
摘要: JSON:JavaScript 对象表示法(JavaScript Object Notation)。 作用 是存储和交换文本信息的语法。类似 XML。JSON 比 XML 更小、更快,更易解析。 JSON 对象 var employees = { "firstName":"John" , "last 阅读全文
posted @ 2020-05-22 15:00 gaoshengjun 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 1 原生javascript实现ajax请求 参见w3c "值得注意的是写请求路径是:一定不需要加 / “ <script type="text/javascript"> function fun() { var xmlhttp; if(window.XMLHttpRequest){ xmlhttp 阅读全文
posted @ 2020-05-22 14:55 gaoshengjun 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 动态代理的格式 Porxy.newProxyInstance( ClassLoader loader, //指定当前目标对象使用类加载器 Class<?>[] interfaces, //目标对象实现的接口的类型 new InvocationHandler() { //事件处理器 @Override 阅读全文
posted @ 2020-05-22 10:52 gaoshengjun 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1.实现一个filter步骤 >编写一个java类实现Lister接口 @WebFilter("/*") //这样就不需要在web.xml文件中再配置了public class EncodingFilter implements Filter { } >在web.xml文件中配置 可以用注解 @We 阅读全文
posted @ 2020-05-21 17:00 gaoshengjun 阅读(166) 评论(0) 推荐(0) 编辑
摘要: EL表达式 ${pageContext.request.contextPath} 5.1 EL作用(替代 <%= %>) 语法: ${变量} 3.1 输出普通字符串: ${name} 3.2 输出对象属性: ${student.name} 注意: .name 相当于 .getName()方法 3.3 阅读全文
posted @ 2020-05-21 10:01 gaoshengjun 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 因为Http协议是无状态的(即第一次请求访问 和第二次请求访问之间的数据不能进行交互)所以产生了Cookie 和session 1.Cookie cookie值的格式是key=value;key2=value2 (tomcat8之后cookie支持存储中文数据) Cookie的默认时效为Sessio 阅读全文
posted @ 2020-05-20 15:01 gaoshengjun 阅读(154) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页