上一页 1 ··· 9 10 11 12 13 14 15 下一页
摘要: idea中让tomcat的service.xml文件修改后生效 遇到了很多的坑,一步一步解决登记 有些事情,当时很清楚,以后或许就忘记了; idea控制台打印日志时候,出现中文乱码,解决办法: 添加如下信息: -Dfile.encoding=UTF-8 阅读全文
posted @ 2020-03-19 14:22 金鑫金 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Spring注解 1 用于创建对象的注解; 他们的作用就和在XML配置文件中编写一个<bean>标签实现的功能是一样的; @Component: 作用:用于把当前类对象存入spring容器中; 属性: value:指定bean的id。当我们不写时,它的默认值是当前类名,且首字母改小写。 @Contr 阅读全文
posted @ 2020-03-16 00:11 金鑫金 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; upstream tomcat-travel{ server 192.168.16.115:808 阅读全文
posted @ 2020-03-14 13:51 金鑫金 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 配置文件 http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; #默认端口号 server_name local 阅读全文
posted @ 2020-03-14 13:42 金鑫金 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.本地安装好maven 2.设置好maven环境变量 3.在cmd命令窗口输入 mvn -v 查看是否有对应的版本信息 4.在idea中的Settings中配置maven maven maven home directory 设置为本地的安装目录 User settings file 选中对应ma 阅读全文
posted @ 2020-03-14 01:44 金鑫金 阅读(2292) 评论(0) 推荐(0) 编辑
摘要: redis的数据结构 redis存储的是,Key:value格式的数据 key都是字符串 value由5中不同的数据结构 1字符串类型 string 2哈希类型 hash map格式 3列表类型 list linkedlist格式 允许重复 4集合类型 set 不允许重复 5有序集合类型 sorte 阅读全文
posted @ 2020-03-13 00:20 金鑫金 阅读(129) 评论(0) 推荐(0) 编辑
摘要: JQeury实现Ajax 1 $.ajax({ url:"请求路径", 请求路径 type:"POST", 请求方式 data:{"key0":"value0", "key1":"value1" }, 请求参数 success:function (data){ alert ( data ); }, 阅读全文
posted @ 2020-03-12 23:06 金鑫金 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 代理模式:代理对象代理真实对象,达到增强真实对象功能的目的 静态代理:有一个类文件描述代理模式 动态代理:在内存中形成代理类 代理对象和真实对象实现相同的接口 代理对象 = Proxy.newProxyInstance(); 使用代理对象调用方法 增强方法 增强参数列表 增强返回值类型 增强方法体执 阅读全文
posted @ 2020-03-12 00:33 金鑫金 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Filter过滤器 配置方式:web.xml <filter> <filter-name>Demo097</filter-name> <filter-class>cn.xinx.web.FilterDemo097</filter-class> </filter> <filter-mapping> < 阅读全文
posted @ 2020-03-11 22:44 金鑫金 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ServletContext对象 代表整个web应用,可以和程序的容器(服务器) 通信 通过request对象获取 request.getServletContext(); 通过HttpServlet获取 this.getServletContext(); 获取MIME类型:在互联网通信过程中定义的 阅读全文
posted @ 2020-03-11 00:15 金鑫金 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 下一页