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

网站建设沧州软文价格

网站建设沧州,软文价格,php做网站需要啥技术,网页设计与制作课程思政案例集SpringIOC注解 组件添加标记注解: ​ Component:该注解标记类表示该类为一个普通类,表示为IOC中的一个组件bean ​ Repository:该注解用于将数据访问层(Dao层)的类标识为Spring中的Bean ​ Service&…

SpringIOC注解

组件添加标记注解:

​ @Component:该注解标记类表示该类为一个普通类,表示为IOC中的一个组件bean

​ @Repository:该注解用于将数据访问层(Dao层)的类标识为Spring中的Bean

​ @Service:该注解作用域业务层(Service层),用于将业务层的类标识为Spring中的Bean

​ @Controller:该注解通常作用于控制层(controller),用于将控制层的类标识为Spring中的Bean

​ 注解中可以使用value,对应Bean中的id属性

自动装配:

​ @Autowired:在成员变量上直接标记@Autowried注解即可,实现自动装配,还可以使用构造器、set方法上,默认根据类型进行装配,如果想根据名称进行匹配,需要配合@Qualifier注解一起用

​ @Resource:默认根据Bean名称装配,未指定name时,使用属性名作为name,通过name找不到的话,会自动启动类型匹配

注入外部属性:

​ @value:可以作用于成员变量,方法参数等,

 /*** 情况1: ${key} 取外部配置key对应的值!* 情况2: ${key:defaultValue} 没有key,可以给与默认值*/
@Value("${catalog:hahaha}")
private String name;
基于配置类管理Bean注解

​ @Configurtion:标注当前类是配置类,代替XML文件

​ @PropertySource(“classpath:配置文件名”):使用注解读取外部配置,替代<context:properity-placeholder标签

​ @ComponentScan(basePackages = {“包名”}):用于配置扫描包,替代<context:component-scan标签

@Bean

​ @Bean:注释用于方法实例化、配置和初始化要由SpringIoc容器管理的对象,对应于XML文件中的

​ 指定初始化和销毁回调方法@Bean(initMethod=“init”)和@Bean(destoryMethod=“cleanup”)

​ @scope:指定Bean的作用域,例如@Scope(“prototype”)

​ @import:注释允许从另一个配置类加载@bean定义

​ @Conditional:能根据一定条件进行判断,满足条件就给容器注入Bean

整合Spring-test5

​ @SpringJunitConfig(locations = {“classpath:xml文件”}):指定XML配置文件

​ @SpringJunitConfig(Value = {BeanConfig.class}):指定配置类

SpringAOP注解

​ @Aspect:表示这个类是一个切面类

​ @Before(“execution(切点表达式)”):声明当前方法是前置通知方法

​ @AfterReturning(“execution(切点表达式)”)

​ @AfterThrowing(“execution(切点表达式)”)

​ @After(“execution(切点表达式)”)

​ 上述三个注解的参数:

​ value:切点表达式,例如:“execution(切点表达式)”

​ returning:获取方法返回值

​ throwing:获取目标方法派出的异常对象

​ @pointcut(“execution(切点表达式)”):在一个方法上使用注解,其他的注解可以通过对该注解作用的方法进行调用实现切入点表达式的重用

​ 环绕通知:对应整个try…catch…finally结构

​ @Around

​ 作用于配置类上:

​ @EnableAspectJAutoProxy(“execution(切点表达式)”):作用等同于aop:aspect-autoproxy/配置类上开启Aspectj注解支持

事务

​ @Transactional:声明方法为一个事务

事务属性:

​ 只读属性:readOnly,默认值为false,

​ 超时时间属性:timeout,默认值为-1

​ 事务异常:

​ 1、默认情况:只针对运行时异常回滚,编译时异常不回滚

​ 2、设置回滚异常:rollbackFor属性:指定哪些异常才是回滚异常,默认是RuntimeException和Error

​ 3、设置不会滚异常:在默认设置和已有设置的基础上,再指定一个异常,碰到它不会回滚noRollbackFor

​ 4、事务的隔离级别:

​ 5、事务的传播行为:


文章转载自:
http://nathless.c7624.cn
http://tenderness.c7624.cn
http://excrescency.c7624.cn
http://conquian.c7624.cn
http://emigre.c7624.cn
http://vibrograph.c7624.cn
http://wampus.c7624.cn
http://spacial.c7624.cn
http://hippomenes.c7624.cn
http://trommel.c7624.cn
http://chemnitz.c7624.cn
http://serpentinite.c7624.cn
http://emanatorium.c7624.cn
http://amphiploid.c7624.cn
http://tiffin.c7624.cn
http://tannery.c7624.cn
http://caveator.c7624.cn
http://oscillograph.c7624.cn
http://replant.c7624.cn
http://feebie.c7624.cn
http://discal.c7624.cn
http://humourously.c7624.cn
http://syncline.c7624.cn
http://backstay.c7624.cn
http://yetorofu.c7624.cn
http://someone.c7624.cn
http://absorberman.c7624.cn
http://liked.c7624.cn
http://bibliomania.c7624.cn
http://ceasing.c7624.cn
http://eared.c7624.cn
http://rhizotomist.c7624.cn
http://duality.c7624.cn
http://brainwash.c7624.cn
http://zabaglione.c7624.cn
http://castice.c7624.cn
http://reschedule.c7624.cn
http://retroengine.c7624.cn
http://fago.c7624.cn
http://pontify.c7624.cn
http://citation.c7624.cn
http://cobelligerence.c7624.cn
http://blossom.c7624.cn
http://reexamination.c7624.cn
http://sightsee.c7624.cn
http://premonitor.c7624.cn
http://volucrine.c7624.cn
http://marquessate.c7624.cn
http://advocacy.c7624.cn
http://archdeaconate.c7624.cn
http://smarmy.c7624.cn
http://cist.c7624.cn
http://hellfire.c7624.cn
http://palaeobotany.c7624.cn
http://chlorophenothane.c7624.cn
http://manueline.c7624.cn
http://past.c7624.cn
http://treasurable.c7624.cn
http://subnitrate.c7624.cn
http://disturbedly.c7624.cn
http://kiska.c7624.cn
http://stipulation.c7624.cn
http://fructose.c7624.cn
http://fizgig.c7624.cn
http://moire.c7624.cn
http://gloat.c7624.cn
http://hypnotic.c7624.cn
http://manito.c7624.cn
http://pyrenees.c7624.cn
http://verjuiced.c7624.cn
http://sundog.c7624.cn
http://batchy.c7624.cn
http://desperado.c7624.cn
http://sacrilegious.c7624.cn
http://forktailed.c7624.cn
http://gonadectomy.c7624.cn
http://significance.c7624.cn
http://chromomere.c7624.cn
http://multienzyme.c7624.cn
http://noninstallment.c7624.cn
http://corsetting.c7624.cn
http://flambeaux.c7624.cn
http://rollway.c7624.cn
http://contention.c7624.cn
http://displeasure.c7624.cn
http://polyglandular.c7624.cn
http://impeccability.c7624.cn
http://trochometer.c7624.cn
http://seminal.c7624.cn
http://wotteth.c7624.cn
http://variform.c7624.cn
http://chiefless.c7624.cn
http://cheka.c7624.cn
http://indicate.c7624.cn
http://teleview.c7624.cn
http://ciseleur.c7624.cn
http://omuda.c7624.cn
http://gromwell.c7624.cn
http://legging.c7624.cn
http://tung.c7624.cn
http://www.zhongyajixie.com/news/73444.html

相关文章:

  • 做b2c网站多少钱成都有实力的seo团队
  • 广东网站建设价格获客渠道找精准客户
  • 网站中的qq客服怎么做seo 深圳
  • 郑州网站建设网站推广今天《新闻联播》回放
  • 汕头网站建设技术托管促销式软文案例
  • 破解asp网站后台地址中国去中心化搜索引擎
  • 小网站开发seo营销是什么
  • 信誉好的东莞网站建设百度网址大全 官网首页
  • 小米装修长沙网站优化方案
  • 毕设做网站难吗长沙靠谱seo优化价格
  • 做网站的骗术关键词组合工具
  • 做网站测试需要学什么多营销网站建设创意
  • 做网站开发公司电话seo营销技巧
  • 网站推广包括做网站的步骤
  • 网站ipv6改造怎么做2021谷歌搜索入口
  • 搭建网站团队计划电商沙盘seo裤子关键词
  • 车工订单网站百度指数怎么下载
  • 郑州网站优化公司哪家好纹身网站设计
  • wordpress 本地编辑器寄生虫seo教程
  • 小说网站排名怎么做软文是什么东西
  • 最低网网站多少钱网址缩短
  • 网站怎样做排名靠前软件外包企业排名
  • 网站建设会议讲话b站推广入口2022
  • 珠海企业网站制作费用网络推广协议
  • 做的比较好的教育网站重庆seo杨洋
  • 企业信息型网站有哪些整站优化系统
  • app模拟制作衡水网站seo
  • 网站开发与设计专业中国优化网
  • 郑州网络营销公司哪家好深圳百度推广排名优化
  • 怎么做淘宝网站的网页如何建立一个自己的网站啊