上一页 1 ··· 5 6 7 8 9
摘要: 1.添加simpletime 的节点 2. 添加一个inject节点用来每1s循环获取当点的信息 3.添加一个函数节点对simpletime发来的msg进行解析 var payload=msg;var dateStr=payload.mydate;var tempstr=dateStr.split( 阅读全文
posted @ 2022-04-26 18:00 wiselee/ 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 文件的下载功能 @RequestMapping("/testDown")public ResponseEntity<byte[]> testResponseEntity(HttpSession session) throws IOException { //获取ServletContext对象 Se 阅读全文
posted @ 2022-04-26 17:55 wiselee/ 阅读(131) 评论(0) 推荐(0) 编辑
摘要: javaWEB中的四种域对象 (1)ServletContext ServletContext是最大的Web域对象,在整个工程内有效,可以存储一些需要全局部署的配置文件,也可以存储其他信息,不过因为它的生命周期最长,是随着服务器的开 启而开启,随着服务器的关闭而销毁,或者项目从服务器中移除工程而销毁 阅读全文
posted @ 2022-04-03 13:40 wiselee/ 阅读(479) 评论(0) 推荐(1) 编辑
摘要: 创建 maven工程 在pom.xml引入依赖: <dependencies> <!-- SpringMVC --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> 阅读全文
posted @ 2022-03-31 22:16 wiselee/ 阅读(24) 评论(0) 推荐(0) 编辑
摘要: xml注解:注解和xml混合使用 <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XM 阅读全文
posted @ 2022-03-22 23:35 wiselee/ 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 首先 dao层: dao -bookdao(interface) -bookdaoimpl service层: bookService 实体类对象 entiry-book 测试类 Test-TestBook 结构如图所示: xml配置: <?xml version="1.0" encoding="U 阅读全文
posted @ 2022-03-22 14:41 wiselee/ 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1.bean管理 -spring创建对象 -在spring的配置文件中,使用bean标签、标签里添加对应的属性、就可以实现对象的创建 -在bean标签中有很多属性 -id属性:唯一的标识 -class属性:类全路径(包类的路径) -创建对象的时候:默认无参 -spring注入属性2.基于xml方式注 阅读全文
posted @ 2022-03-20 13:41 wiselee/ 阅读(61) 评论(0) 推荐(0) 编辑
摘要: xml的配置如下<bean id="userService" class="com.spring5.service.UserService"> <property name="userDAO" ref="userDAO"></property></bean><bean id="userDAO" cl 阅读全文
posted @ 2022-03-17 14:08 wiselee/ 阅读(57) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9