随笔分类 -  后端开发

摘要:文件的下载功能 @RequestMapping("/testDown")public ResponseEntity<byte[]> testResponseEntity(HttpSession session) throws IOException { //获取ServletContext对象 Se 阅读全文
posted @ 2022-04-26 17:55 wiselee/ 阅读(140) 评论(0) 推荐(0) 编辑
摘要:创建 maven工程 在pom.xml引入依赖: <dependencies> <!-- SpringMVC --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> 阅读全文
posted @ 2022-03-31 22:16 wiselee/ 阅读(26) 评论(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/ 阅读(29) 评论(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/ 阅读(37) 评论(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/ 阅读(61) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示