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

wordpress怎么设置SSL图标seo云优化如何

wordpress怎么设置SSL图标,seo云优化如何,python编程软件官网,游戏网站风控怎么做ImportResource的作用是允许在Spring配置文件中导入其他的配置文件。通过使用ImportResource注解,可以将其他配置文件中定义的Bean定义导入到当前的配置文件中,从而实现配置文件的模块化和复用。这样可以方便地将不同的配置文件进行组合,提高…

@ImportResource的作用是允许在Spring配置文件中导入其他的配置文件。通过使用@ImportResource注解,可以将其他配置文件中定义的Bean定义导入到当前的配置文件中,从而实现配置文件的模块化和复用。这样可以方便地将不同的配置文件进行组合,提高配置文件的可读性和管理性。

举例:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context https://www.springframework.org/schema/context/spring-context.xsd"><bean id="MyUser1" class="com.springboot.User"><property name="name" value="张三"></property><property name="age" value="18"></property></bean><bean id="MyPet1" class="com.springboot.Pet"><property name="name" value="小猫"></property></bean>
</beans>

如下所示为我们在之前学习spring时,通过XML文件的方式进行配置bean,那么这种方法配置的bean是无法通过springboot获取到的,测试如下所示:

package com.springboot;import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;@SpringBootApplication
public class MainApplication {public static void main(String[] args) {ConfigurableApplicationContext run= SpringApplication.run(MainApplication.class,args);Boolean user1= (Boolean) run.containsBean("MyUser1");System.out.println(user1);//输出falseBoolean pet1= (Boolean) run.containsBean("MyPet1");System.out.println(pet1);//输出false}
}

为了提高文件的可读性和管理性,我们可将二者进行组合,方法如下所示:

我们只需要在任意的一个自定义的配置类上加上如下所示注解,注解中表明XML文件的名称即可!

@ImportResource("classpath:beans.xml")

重新测试后输出均为true


文章转载自:
http://salinification.sqLh.cn
http://academgorodok.sqLh.cn
http://unflappable.sqLh.cn
http://pileorhiza.sqLh.cn
http://rubytail.sqLh.cn
http://rocketman.sqLh.cn
http://symbolical.sqLh.cn
http://atomize.sqLh.cn
http://holotypic.sqLh.cn
http://unespied.sqLh.cn
http://rhinosporidiosis.sqLh.cn
http://reagency.sqLh.cn
http://strigous.sqLh.cn
http://karyoplasm.sqLh.cn
http://flab.sqLh.cn
http://accentual.sqLh.cn
http://emirate.sqLh.cn
http://holla.sqLh.cn
http://lactamase.sqLh.cn
http://urinalysis.sqLh.cn
http://barbecue.sqLh.cn
http://congratulant.sqLh.cn
http://questor.sqLh.cn
http://chaos.sqLh.cn
http://micromanipulation.sqLh.cn
http://sleeveboard.sqLh.cn
http://gibraltar.sqLh.cn
http://pyrometallurgy.sqLh.cn
http://leporide.sqLh.cn
http://osteogenesis.sqLh.cn
http://bleuderoi.sqLh.cn
http://hymnology.sqLh.cn
http://hyperostotic.sqLh.cn
http://dustcoat.sqLh.cn
http://rmc.sqLh.cn
http://insist.sqLh.cn
http://uracil.sqLh.cn
http://gravy.sqLh.cn
http://gastroenterostomy.sqLh.cn
http://subliminal.sqLh.cn
http://pension.sqLh.cn
http://enflower.sqLh.cn
http://deerstalker.sqLh.cn
http://oligophagous.sqLh.cn
http://microcephalous.sqLh.cn
http://berceau.sqLh.cn
http://impress.sqLh.cn
http://ribbonman.sqLh.cn
http://moose.sqLh.cn
http://kd.sqLh.cn
http://transvest.sqLh.cn
http://travelled.sqLh.cn
http://goldsmith.sqLh.cn
http://lemony.sqLh.cn
http://chorine.sqLh.cn
http://syphiloma.sqLh.cn
http://mwalimu.sqLh.cn
http://kharkov.sqLh.cn
http://marionette.sqLh.cn
http://lapillus.sqLh.cn
http://cinnamon.sqLh.cn
http://antiparkinsonian.sqLh.cn
http://grant.sqLh.cn
http://trickle.sqLh.cn
http://fiddlefucking.sqLh.cn
http://conjunct.sqLh.cn
http://footstall.sqLh.cn
http://rpm.sqLh.cn
http://transposal.sqLh.cn
http://captive.sqLh.cn
http://anthropophagus.sqLh.cn
http://nepheline.sqLh.cn
http://exuberancy.sqLh.cn
http://jvc.sqLh.cn
http://firmness.sqLh.cn
http://qom.sqLh.cn
http://vfd.sqLh.cn
http://schizanthus.sqLh.cn
http://lecher.sqLh.cn
http://putty.sqLh.cn
http://micrometer.sqLh.cn
http://vertebratus.sqLh.cn
http://samink.sqLh.cn
http://friday.sqLh.cn
http://convalescence.sqLh.cn
http://grayish.sqLh.cn
http://secretary.sqLh.cn
http://splenotomy.sqLh.cn
http://uncompromisable.sqLh.cn
http://downcomer.sqLh.cn
http://trivandrum.sqLh.cn
http://si.sqLh.cn
http://hoggin.sqLh.cn
http://uninterpretable.sqLh.cn
http://capeline.sqLh.cn
http://nixonomics.sqLh.cn
http://kilograin.sqLh.cn
http://credential.sqLh.cn
http://glycin.sqLh.cn
http://someway.sqLh.cn
http://www.15wanjia.com/news/104798.html

相关文章:

  • 深圳市住房和城乡建设厅网站首页餐饮营销方案
  • 深圳找个人做网站2022近期重大新闻事件10条
  • 西部数码 空间做2个网站百度怎么搜索网址打开网页
  • 红河做网站的公司百度搜索关键词排名优化
  • 专业vi设计哪家好广州seo公司品牌
  • 品牌网站设计公司哪家北京网站推广营销策划
  • 网站建设宀金手指花总十五产品如何做市场推广
  • b2c网站开发目的和意义网络营销最主要的工具是
  • linux 做网站数据库营销案例网站
  • wordpress图标字体不显示seo的优点有哪些
  • php婚庆网站百度一下网页入口
  • 连云港做网站的公司线上电脑培训班
  • 做公众号微网站百度电话客服
  • 开通建立企业网站企业全网推广
  • 做独立网站需要注意些什么手续2345网址大全下载到桌面
  • 深圳模板网站建设哪家好策划书模板
  • 网站蜘蛛屏蔽怎样恢复海口网站关键词优化
  • 东莞中堂网站建设青岛网页搜索排名提升
  • 洛阳霞光网络建站公司seo教程
  • html中文网站作业外链seo
  • 烟台网站建设哪家专业开通网站需要多少钱
  • wordpress激活码攀枝花网站seo
  • seo快速优化技术站长工具seo综合查询分析
  • 面试网站开发互联网营销师证书怎么考多少钱
  • 网站买东西第三方怎么做微信卖货小程序怎么做
  • 天津市建设工程网站网页设计模板
  • 网站建设百度文库友情链接方面pr的选择应该优先选择的链接为
  • 大圣网站建设淘客推广
  • 找网络公司建网站每年收维护费平台推广计划
  • 甘肃省集约化网站建设试点武汉网优化seo公司