当前位置: 首页 > news >正文

google cloud 永久免费关键词优化排名易下拉排名

google cloud 永久免费,关键词优化排名易下拉排名,如何用excel来做网站后台,网站seo的方法学习的最大理由是想摆脱平庸#xff0c;早一天就多一份人生的精彩#xff1b;迟一天就多一天平庸的困扰。各位小伙伴#xff0c;如果您#xff1a; 想系统/深入学习某技术知识点… 一个人摸索学习很难坚持#xff0c;想组团高效学习… 想写博客但无从下手#xff0c;急需… 学习的最大理由是想摆脱平庸早一天就多一份人生的精彩迟一天就多一天平庸的困扰。各位小伙伴如果您 想系统/深入学习某技术知识点… 一个人摸索学习很难坚持想组团高效学习… 想写博客但无从下手急需写作干货注入能量… 热爱写作愿意让自己成为更好的人… 文章目录 前言7、实验六为数组类型属性赋值8、实验七为集合类型属性赋值①为List集合类型属性赋值②为Map集合类型属性赋值③引用集合类型的bean 9、实验八p命名空间10、实验九引入外部属性文件 总结 前言 7、实验六为数组类型属性赋值 8、实验七为集合类型属性赋值 ①为List集合类型属性赋值 ②为Map集合类型属性赋值 ③引用集合类型的bean 9、实验八p命名空间 10、实验九引入外部属性文件 7、实验六为数组类型属性赋值 8、实验七为集合类型属性赋值 ①为List集合类型属性赋值 ②为Map集合类型属性赋值 ③引用集合类型的bean 9、实验八p命名空间 10、实验九引入外部属性文件 7、实验六为数组类型属性赋值 ①修改Student类 在Student类中添加以下代码 private String[] hobbies;public String[] getHobbies() {return hobbies; }public void setHobbies(String[] hobbies) {this.hobbies hobbies; }②配置bean bean idstudentFour classcom.gedeshidai.spring.bean6.Studentproperty nameid value1004/propertyproperty namename value赵六/propertyproperty nameage value26/propertyproperty namesex value女/property!-- ref属性引用IOC容器中某个bean的id将所对应的bean为属性赋值 --property nameclazz refclazzOne/propertyproperty namehobbiesarrayvalue抽烟/valuevalue喝酒/valuevalue烫头/value/array/property /bean8、实验七为集合类型属性赋值 ①为List集合类型属性赋值 在Clazz类中添加以下代码 private ListStudent students;public ListStudent getStudents() {return students; }public void setStudents(ListStudent students) {this.students students; }配置bean bean idclazzTwo classcom.gedeshidai.spring6.bean.Clazzproperty nameclazzId value4444/propertyproperty nameclazzName valueJavaee0222/propertyproperty namestudentslistref beanstudentOne/refref beanstudentTwo/refref beanstudentThree/ref/list/property /bean若为Set集合类型属性赋值只需要将其中的list标签改为set标签即可 ②为Map集合类型属性赋值 创建教师类Teacher package com.gedeshidai.spring6.bean; public class Teacher {private Integer teacherId;private String teacherName;public Integer getTeacherId() {return teacherId;}public void setTeacherId(Integer teacherId) {this.teacherId teacherId;}public String getTeacherName() {return teacherName;}public void setTeacherName(String teacherName) {this.teacherName teacherName;}public Teacher(Integer teacherId, String teacherName) {this.teacherId teacherId;this.teacherName teacherName;}public Teacher() {}Overridepublic String toString() {return Teacher{ teacherId teacherId , teacherName teacherName \ };} }在Student类中添加以下代码 private MapString, Teacher teacherMap;public MapString, Teacher getTeacherMap() {return teacherMap; }public void setTeacherMap(MapString, Teacher teacherMap) {this.teacherMap teacherMap; }配置bean bean idteacherOne classcom.atguigu.spring6.bean.Teacherproperty nameteacherId value10010/propertyproperty nameteacherName value大宝/property /beanbean idteacherTwo classcom.gedeshidaia.spring6.bean.Teacherproperty nameteacherId value10086/propertyproperty nameteacherName value二宝/property /beanbean idstudentFour classcom.atguigu.spring6.bean.Studentproperty nameid value1004/propertyproperty namename value赵六/propertyproperty nameage value26/propertyproperty namesex value女/property!-- ref属性引用IOC容器中某个bean的id将所对应的bean为属性赋值 --property nameclazz refclazzOne/propertyproperty namehobbiesarrayvalue抽烟/valuevalue喝酒/valuevalue烫头/value/array/propertyproperty nameteacherMapmapentrykeyvalue10010/value/keyref beanteacherOne/ref/entryentrykeyvalue10086/value/keyref beanteacherTwo/ref/entry/map/property /bean③引用集合类型的bean !--list集合类型的bean-- util:list idstudentsref beanstudentOne/refref beanstudentTwo/refref beanstudentThree/ref /util:list !--map集合类型的bean-- util:map idteacherMapentrykeyvalue10010/value/keyref beanteacherOne/ref/entryentrykeyvalue10086/value/keyref beanteacherTwo/ref/entry /util:map bean idclazzTwo classcom.atguigugu.spring6.bean.Clazzproperty nameclazzId value4444/propertyproperty nameclazzName valueJavaee0222/propertyproperty namestudents refstudents/property /bean bean idstudentFour classcom.gedeshidai.spring6.bean.Studentproperty nameid value1004/propertyproperty namename value赵六/propertyproperty nameage value26/propertyproperty namesex value女/property!-- ref属性引用IOC容器中某个bean的id将所对应的bean为属性赋值 --property nameclazz refclazzOne/propertyproperty namehobbiesarrayvalue抽烟/valuevalue喝酒/valuevalue烫头/value/array/propertyproperty nameteacherMap refteacherMap/property /bean使用util:list、util:map标签必须引入相应的命名空间 ?xml version1.0 encodingUTF-8? beans xmlnshttp://www.springframework.org/schema/beansxmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexmlns:utilhttp://www.springframework.org/schema/utilxsi:schemaLocationhttp://www.springframework.org/schema/utilhttp://www.springframework.org/schema/util/spring-util.xsdhttp://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsd9、实验八p命名空间 引入p命名空间 ?xml version1.0 encodingUTF-8? beans xmlnshttp://www.springframework.org/schema/beansxmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexmlns:utilhttp://www.springframework.org/schema/utilxmlns:phttp://www.springframework.org/schema/pxsi:schemaLocationhttp://www.springframework.org/schema/utilhttp://www.springframework.org/schema/util/spring-util.xsdhttp://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsd引入p命名空间后可以通过以下方式为bean的各个属性赋值 bean idstudentSix classcom.atguigu.spring6.bean.Studentp:id1006 p:name小明 p:clazz-refclazzOne p:teacherMap-refteacherMap/bean10、实验九引入外部属性文件 ①加入依赖 !-- MySQL驱动 -- dependencygroupIdmysql/groupIdartifactIdmysql-connector-java/artifactIdversion8.0.30/version /dependency!-- 数据源 -- dependencygroupIdcom.alibaba/groupIdartifactIddruid/artifactIdversion1.2.15/version /dependency②创建外部属性文件 jdbc.userroot jdbc.passwordgedeshidai jdbc.urljdbc:mysql://localhost:3306/ssm?serverTimezoneUTC jdbc.drivercom.mysql.cj.jdbc.Driver③引入属性文件 引入context 名称空间 ?xml version1.0 encodingUTF-8? beans xmlnshttp://www.springframework.org/schema/beansxmlns:xsihttp://www.w3.org/2001/XMLSchema-instancexmlns:contexthttp://www.springframework.org/schema/contextxsi:schemaLocationhttp://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context.xsd/beans!-- 引入外部属性文件 -- context:property-placeholder locationclasspath:jdbc.properties/注意在使用 context:property-placeholder 元素加载外包配置文件功能前首先需要在 XML 配置的一级标签 中添加 context 相关的约束。 ④配置bean bean iddruidDataSource classcom.alibaba.druid.pool.DruidDataSourceproperty nameurl value${jdbc.url}/property namedriverClassName value${jdbc.driver}/property nameusername value${jdbc.user}/property namepassword value${jdbc.password}/ /bean⑤测试 Test public void testDataSource() throws SQLException {ApplicationContext ac new ClassPathXmlApplicationContext(spring-datasource.xml);DataSource dataSource ac.getBean(DataSource.class);Connection connection dataSource.getConnection();System.out.println(connection); }总结 以上就是Spring之容器IOC2的相关知识点希望对你有所帮助。 积跬步以至千里积怠惰以至深渊。时代在这跟着你一起努力哦
http://www.dnsts.com.cn/news/182890.html

相关文章:

  • 移动网站建设cnfg做电影网站大概要多少钱
  • 最专业网站建设公司首选免费机械加工网
  • 山东建设厅网站网址近期的新闻热点
  • 室内设计和网站建设哪个前景好网站推送
  • 我有域名怎么做网站免费自助站制作在线
  • 北京网站建设知名公司排名网上购物哪个平台质量有保证
  • 电子商务网站后台模板有啥方法下载wordpress主题
  • asp.net网站改版 旧网站链接什么是网站设计
  • 手机网站怎么做域名解析做网站所需的知识技能
  • 建设二手网站的建设费用包括wordpress函数大全
  • 图文型官网站网站数据库清空
  • 西安seo优化培训机构优化公司治理
  • 建立网站地图营销型企业网站建设规划探讨
  • 做宣传类网站需要什么资质域名数和网站数
  • 电商网站开发团队网站升级方案
  • 网站会员充值做哪个分录it行业培训机构一般多少钱
  • 杨凌网站建设推广杭州seo全网营销
  • 南京网站制作哪家专业wordpress 模版开发
  • 珠海网站建设公司有哪些优化wordpress
  • 如何防止网站攻击专业的网站建设价格
  • 如何做网站联盟营销网线制作的过程
  • 专业网站制作哪专业怎么制作一个网站销售平台
  • 使用阿里云建网站公司页面图片
  • 建站网站官方公共资源交易中心总结
  • 免费网站建设哪个好 - 百度世界500强排名
  • 网站统计源码下载快速设计网站
  • 做网站背景全覆盖的代码为什么做动漫短视频网站
  • 网站项目开发流程及规范怎么做企业网站原型
  • 建设银行手机银行下载官方网站万全孔家庄做网站
  • 重庆网站建设大概需要多少钱盐城做企业网站哪家好