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

个人网站效果图wordpress 本地 域名绑定

个人网站效果图,wordpress 本地 域名绑定,速成网站,唐山做网站汉狮网络这两个注解的功能类似标签中的init-method和destroy-method。分别在构造方法调用之后和实例释放资源之前被调用。 注解类: package com.annotation.dao.impl;import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation…

这两个注解的功能类似标签中的init-method和destroy-method。分别在构造方法调用之后和实例释放资源之前被调用。

注解类:

package com.annotation.dao.impl;import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;import com.annotation.dao.interfaces.InterfaceUserDao;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;/*** @copyright 2003-2025* @author    qiao wei* @date      2025-03-24* @version   1.0* @brief     注解方式标注Bean,命名为“userDaoDao”,如果没有命名,则默认为类名首字母小写,即“userDaoImpl”。* @history   name*            date*            brief*/
@Component(value = "userDao01")
@Scope(value = "prototype")
@Lazy(value = false)
public class UserDaoImpl implements InterfaceUserDao {public UserDaoImpl() {System.out.println("类的构造方法");}@Overridepublic void print() {System.out.println("UserDaoImpl类实例,继承接口InterfaceUserDao");}@PostConstructpublic void init() {System.out.println("UserDaoImpl类init方法,在构造方法之后调用");}@PreDestroypublic void destroy() {System.out.println("UserDaoImpl类destroy方法,在Bean销毁之前调用");}
}

测试:

package com.annotation.dao.impl;import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;import com.annotation.dao.interfaces.InterfaceUserDao;/*** @copyright 2003-2025* @author    qiao wei* @date      2025-04-12* @version   1.0* @brief     * @history   name*            date*            brief*/
class UserDaoImplTest {@Testpublic void test01() {ClassPathXmlApplicationContext context =new ClassPathXmlApplicationContext("./xml/annotation/applicationContext.xml");InterfaceUserDao userDao = context.getBean("userDao01", InterfaceUserDao.class);userDao.print();context.close();}
}

运行结果:


文章转载自:

http://qL71CdCD.sgmgz.cn
http://OCIet7z3.sgmgz.cn
http://M3VhawpX.sgmgz.cn
http://UeJBhgvt.sgmgz.cn
http://VPSlZhrb.sgmgz.cn
http://JlyEE4fq.sgmgz.cn
http://tTitbMZw.sgmgz.cn
http://IW5bEZrb.sgmgz.cn
http://bhxiXL56.sgmgz.cn
http://vuNpp3cT.sgmgz.cn
http://S2T4cSD7.sgmgz.cn
http://XjClGtHi.sgmgz.cn
http://kzDXaUac.sgmgz.cn
http://49cKjzVj.sgmgz.cn
http://wocRRyjD.sgmgz.cn
http://QnWNnCAv.sgmgz.cn
http://g23964AF.sgmgz.cn
http://1Hssahsu.sgmgz.cn
http://d9Unh4uW.sgmgz.cn
http://ZSwXtXd8.sgmgz.cn
http://0Tg5Lav6.sgmgz.cn
http://0yY3IK8G.sgmgz.cn
http://XUXse4y8.sgmgz.cn
http://ZrYSy9Vq.sgmgz.cn
http://HoxYHBJ6.sgmgz.cn
http://Fz92F6nY.sgmgz.cn
http://cGPng0hY.sgmgz.cn
http://lMuHXfxL.sgmgz.cn
http://XM0EWLqO.sgmgz.cn
http://MpcTN3w7.sgmgz.cn
http://www.dtcms.com/wzjs/649276.html

相关文章:

  • 租用服务器做视频网站城乡建设部注册建筑师网站
  • 南阳网站推广排名内网网站建设主流语言
  • 网站界面分类公共资源交易网
  • 建设网站多久外贸网站推广
  • 做精神科网站安装失败未能找到wordpress目录
  • 个人网站开发软件开发公司名字起名大全
  • 网站导航如何用响应式做企业网站建设介绍
  • 有网址的公司重庆seo点击工具
  • 企业网站开发一般多少钱wordpress充值卡生成
  • 网站开发免费课程做文献ppt模板下载网站有哪些
  • 百度帐号注册seo培训公司
  • lnmp 网站开发总结多语种网站营销
  • 网页设计板式网站wordpress月亮花园
  • 宝塔网站301重定向怎么做wordpress 刀具企业
  • 阿里云网站建设好了怎么海口网络建设
  • 网站开发的软硬环境怎么描述wordpress 商用授权
  • 在线酒店预定网站制作大型商城网站建设方案
  • 凌源网站建设网站开发用
  • 网站结构构图jsp网站项目
  • 做网站公司需要多少钱海口模板建站
  • 平面设计师网站都有哪些哪个购物网站最便宜
  • 网络营销资讯网站wordpress icon 修改
  • 烟台专业网站建设公司wordpress 伪静态tags
  • asp 网站访问统计上海网站建设团队
  • 个人域名备案快的网站佛山专业做网站的公司
  • 网站建设預算去掉自豪的wordpress
  • vs 团队网站开发湛江网站建设方案
  • 长沙网站设计制作重庆有哪些旅游景点和好玩的地方
  • 3322怎么做网站app推广是做什么的
  • seo站内站怎么做广东企业网站模板设计