会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
happy
To make a good person better.
首页
新随笔
联系
订阅
管理
上一页
1
···
40
41
42
43
44
45
46
47
48
···
91
下一页
2021年7月17日
SSM4.2【Spring:SpringMVC获取请求数据】
摘要: 获取基本数据类型、POJO类型、数组类型的请求参数 1 /** 2 * SpringMVC获取请求数据--基本数据类型参数 3 * @param username 4 * @param age 5 */ 6 @RequestMapping("/save11") 7 @ResponseBody //不
阅读全文
posted @ 2021-07-17 15:30 yub4by
阅读(134)
评论(0)
推荐(0)
2021年7月16日
SSM4.1【Spring:SpringMVC的数据响应】
摘要: 页面跳转 1 web.xml 2 3 4 <!--配置SpringMVC的核心组件:DispatcherServlet前端控制器--> 5 <servlet> 6 <servlet-name>DispatcherServlet</servlet-name> 7 <servlet-class>org.
阅读全文
posted @ 2021-07-16 19:28 yub4by
阅读(72)
评论(0)
推荐(0)
SSM3.3【Spring:SpringMVC组件解析】
摘要: SpringMVC的执行流程(组件角度) SpringMVC的组件解析 SpringMVC的注解解析 1 package com.haifei.controller; 2 3 import org.springframework.stereotype.Controller; 4 import org
阅读全文
posted @ 2021-07-16 14:18 yub4by
阅读(67)
评论(0)
推荐(0)
SSM3.2【Spring:SpringMVC简介】
摘要: SpringMVC概述 传统java web SpringMVC web SpringMVC快速入门 实现步骤(如上图) 代码实现 pom.xml中需要配置的依赖 <!--spring坐标--> <dependency> <groupId>org.springframework</groupId>
阅读全文
posted @ 2021-07-16 13:09 yub4by
阅读(45)
评论(0)
推荐(0)
SSM3.1【Spring:Spring集成web环境】
摘要: 搭建初始项目 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins
阅读全文
posted @ 2021-07-16 10:51 yub4by
阅读(63)
评论(0)
推荐(0)
2021年7月15日
SSM2.3【Spring:Spring集成Junit】
摘要: 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-in
阅读全文
posted @ 2021-07-15 20:22 yub4by
阅读(61)
评论(0)
推荐(0)
SSM2.2【Spring:Spring注解开发】
摘要: Spring原始注解 Spring是轻代码而重配置的框架,配置比较繁重,影响开发效率,所以注解开发是一种趋势,注解代替xml配置文件可以简化配置,提高开发效率。 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.s
阅读全文
posted @ 2021-07-15 19:48 yub4by
阅读(62)
评论(0)
推荐(0)
SSM2.1【Spring:Spring配置数据源】
摘要: 数据源(数据库连接池)的作用 数据源的开发步骤 数据源的手动创建 VS Spring配置数据源 虽然将数据库基本连接信息配置到applicationContext.xml中已经完成解耦合,但是实际开发中方便数据库的管理,同样会将数据库的基本连接信息单独抽取到一个properties文件中 代码 po
阅读全文
posted @ 2021-07-15 18:39 yub4by
阅读(53)
评论(0)
推荐(0)
SSM1.3【Spring:Spring相关API】
摘要: 1 // ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml"); 2 ApplicationContext app = new FileSystemXmlApplicationCon
阅读全文
posted @ 2021-07-15 13:26 yub4by
阅读(44)
评论(0)
推荐(0)
SSM1.2【Spring:Spring配置文件、依赖注入】
摘要: 单例scope="singleton" 多例scope="prototype" 1 <?xml version="1.0" encoding="UTF-8"?> 2 <beans xmlns="http://www.springframework.org/schema/beans" 3 xmlns:
阅读全文
posted @ 2021-07-15 11:37 yub4by
阅读(75)
评论(0)
推荐(0)
上一页
1
···
40
41
42
43
44
45
46
47
48
···
91
下一页
公告