经营性商务网站建设需要备案吗wordpress 如何编辑器

news/2025/10/2 2:31:18/文章来源:
经营性商务网站建设需要备案吗,wordpress 如何编辑器,wordpress 去掉分类,网页页面下载Spring 是包含众多工具的 IoC 容器,存的是对象,对象这个词在 Spring 的范围内,称之为 bean IoC 是控制反转 控制权进行了反转,比如对某一个东西的控制权在 A 手上,结果变成了 B ,Spring 管理的是 bean ,所以这里的控制权指的是 bean 的控制权,也就是对象的控制权进行了反转 …Spring 是包含众多工具的 IoC 容器,存的是对象,对象这个词在 Spring 的范围内,称之为 bean IoC 是控制反转 控制权进行了反转,比如对某一个东西的控制权在 A 手上,结果变成了 B ,Spring 管理的是 bean ,所以这里的控制权指的是 bean 的控制权,也就是对象的控制权进行了反转 之前我们依赖的一些对象,我们需要自己去创建,通过 new 来进行创建,有了 Spring 之后我们就不再进行创建了,而是由 Spring 帮助我们进行创建,这就叫控制反转 控制反转的一个优点主要是解耦 耦合度高就说明两个事务的关联性密切,我们项目开发软件设计的原则是高内聚,低耦合 高内聚 : 是指一个模块内部的关系(比如一个班级) 低耦合 : 是指各个模块之间的关系(比如各个班级) 高内聚低耦合就是,一个班级内需要团结协作,但是各个班级之间的相互影响要小,一个班级的问题对别的班级的影响要降低 Spring MVC 和 Spring Boot 都属于 Spring ,Spring MVC 是基于 Spring 的一个 MVC 框架 ,而 Spring Boot 是基于 Spring 的一套快速开发整合包 IoC 是思想, DI(依赖注入) 是是一种实现方式 IoC 就是依赖的象的创建的控制权交给了 Spring 进行管理(存对象), DI 就是如何将依赖对象取出来,并赋给该对象的属性(取对象) IoC 提供了两类注解 :  1.类注解 : Controller(控制器存储) , Service(服务存储) , Repository(仓库存储) , Component(组件存储) , Configuration(配置存储) 2.方法注解 : Bean 接下来我们使用一下这些注解 ①  Controller 先创建一个 controller 包,在里面创建一个 UserController 类,用 Controller 告诉 Spring 帮我们管理这个对象 package com.example.ioc.controller;import org.springframework.stereotype.Controller;//用 Controller 告诉 Spring 帮我们管理这个对象 Controller public class UserController {public void doController(){System.out.println(do Controller...);} } 然后在启动类 DemoApplication 中查看 Spring 有没有把上面这个 Controller 存进来呢 package com.example.ioc; import com.example.ioc.controller.UserController; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();}} 运行出来了,说明存进去了 bean 一般使用这三个方法 ②  Service package com.example.ioc.service;import org.springframework.stereotype.Service;Service public class UserService {public void doService(){System.out.println(do service....);} }依旧在启动类 DemoApplication 中查看 package com.example.ioc;import com.example.ioc.controller.UserController; import com.example.ioc.service.UserService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();UserService userService context.getBean(UserService.class);userService.doService();}} 成功拿到  根据名称来获取 UserService 的 bean (名称为类名转换为小驼峰,特殊情况就是如果类名前两位都是大写,那么bean的名称就是类名) package com.example.ioc;import com.example.ioc.controller.UserController; import com.example.ioc.service.UserService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();UserService userService context.getBean(UserService.class);userService.doService();//根据名称来获取beanUserService userService1 (UserService) context.getBean(userService);userService1.doService();} 根据名称类型来拿 bean package com.example.ioc;import com.example.ioc.controller.UserController; import com.example.ioc.service.UserService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();UserService userService context.getBean(UserService.class);userService.doService();//根据名称来获取beanUserService userService1 (UserService) context.getBean(userService);userService1.doService();//根据名称和类型来获取 beanUserService userService2 context.getBean(userService,UserService.class);userService2.doService();}③  Repository package com.example.ioc.repo;import org.springframework.stereotype.Repository;Repository public class UserRepository {public void doRepository(){System.out.println(do repo...);} } package com.example.ioc;import com.example.ioc.controller.UserController; import com.example.ioc.repo.UserRepository; import com.example.ioc.service.UserService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();UserService userService context.getBean(UserService.class);userService.doService();//根据名称来获取beanUserService userService1 (UserService) context.getBean(userService);userService1.doService();//根据名称和类型来获取 beanUserService userService2 context.getBean(userService,UserService.class);userService2.doService();UserRepository userRepository context.getBean(UserRepository.class);userRepository.doRepository();} ④  Component package com.example.ioc.component;import org.springframework.stereotype.Component;Component public class UserComponent {public void doComponent(){System.out.println(do component);} } package com.example.ioc;import com.example.ioc.component.UserComponent; import com.example.ioc.controller.UserController; import com.example.ioc.repo.UserRepository; import com.example.ioc.service.UserService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();UserService userService context.getBean(UserService.class);userService.doService();//根据名称来获取beanUserService userService1 (UserService) context.getBean(userService);userService1.doService();//根据名称和类型来获取 beanUserService userService2 context.getBean(userService,UserService.class);userService2.doService();UserRepository userRepository context.getBean(UserRepository.class);userRepository.doRepository();UserComponent userComponent context.getBean(UserComponent.class);userComponent.doComponent();}}⑤  Configuration package com.example.ioc.config;import org.springframework.context.annotation.Configuration;Configuration public class UserConfig {public void doConfig(){System.out.println(do configurarion...);} } package com.example.ioc;import com.example.ioc.component.UserComponent; import com.example.ioc.config.UserConfig; import com.example.ioc.controller.UserController; import com.example.ioc.repo.UserRepository; import com.example.ioc.service.UserService; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ApplicationContext;SpringBootApplication public class DemoApplication {public static void main(String[] args) {//Spring 上下文ApplicationContext context SpringApplication.run(DemoApplication.class, args);//返回的就是 Spring 的运行环境UserController bean context.getBean(UserController.class);bean.doController();UserService userService context.getBean(UserService.class);userService.doService();//根据名称来获取beanUserService userService1 (UserService) context.getBean(userService);userService1.doService();//根据名称和类型来获取 beanUserService userService2 context.getBean(userService,UserService.class);userService2.doService();UserRepository userRepository context.getBean(UserRepository.class);userRepository.doRepository();UserComponent userComponent context.getBean(UserComponent.class);userComponent.doComponent();UserConfig userConfig context.getBean(UserConfig.class);userConfig.doConfig();}}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/924504.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

微信网站 顶部导航菜单计算机网络课程设计

fork系统调?创建?进程,也就?个进程变成了两个进程,两个进程执?相同的代码,只是fork系统调?在?进程和?进程中的返回值不同。打开linux-5.4.34/arch/x86/entry/syscalls/syscall_64.tbl 文件,56、 57、 58号系统调?__x64_sy…

怎么做网站广告代理商国外有哪些优秀的网站

一:Cstring类的由来 在C语言中,字符串是以\0结尾的一些字符的集合,为了操作方便,C标准库中提供了一些str系列的库函数,但是这些库函数与字符串是分离开的,不太符合OOP的思想,而且底层空间需要用…

vs2013 网站建设wordpress 去掉发布者

目录 1. 思路(图解)2. 代码 题目链接:leetcode 88. 合并两个有序数组 题目描述: 1. 思路(图解) 思路一:(不满足题目要求) 1. 创建一个大小为nums1和nums2长度之和的…

AI元人文:价值原语构想——迈向动态博弈的价值生态

AI元人文:价值原语构想——迈向动态博弈的价值生态 引言:从“价值对齐”到“价值共生” 在人工智能发展的狂飙突进中,我们正面临一个根本性的悖论:我们试图赋予机器超越人类的智能,却期望其价值体系像一台精密的钟…

常州网站外包网络游戏新规

外连接就是允许不满足条件的字段查询出来转载于:https://www.cnblogs.com/classmethond/p/10129069.html

做旅行义工网站蚁怎么创建网页文件

四边形教学内容:教材第34页?——36页教学目标:1.直观感知四边形,能区分和辨认四边形,知道四边形的特征.进一步认识长方形和正方形,知道它们的角都是直角.2.通过画一画、找一找、拼一拼等活动,培养学生[此文转于斐斐课件园?FFKJ.Net]的观察比较和概括抽象的能力,发展空间想象能…

东莞大型企业网站建设网站建设国风网络公司

哟哟,切克闹,视频剪辑达人们,是不是在视频素材的海洋里迷航了?别着急,今天我就给大家分享几个超实用的无水印短视频素材合集网,让你的创作更加得心应手,从此素材不再是你的烦恼 1,蛙…

网站虚拟机可以自己做吗松阳县建设局网站

1、map介绍 map是C STL的一个关联容器,它提供一对一的数据处理能力。其中,各个键值对的键和值可以是任意数据类型,包括 C 基本数据类型(int、double 等)、使用结构体或类自定义的类型。 第一个可以称为关键字(key)&…

网站还难做啊wordpress 视频 广告

如何在win7下安装Python及配置1、首先,从搜索python官载适合自己电脑python版本。2标右击桌面“计算机”择打开菜单栏中的性”。3、WindowsXP时,在新弹出的属性窗口,选择“高级”->“环境变量”。Windows7是,在新弹出的属性窗口…

阿里云做网站需要些什么简单网页设计html代码

Go语言入门 Go语言入门教程 很多人将 Go 语言 称为 21 世纪的 C 语言,因为 Go 不仅拥有 C 语言的简洁和性能,而且还很好的提供了 21 世纪互联网环境下服务端开发的各种实用特性,让开发者在语言级别就可以方便的得到自己想要的东西。 在 Go…

什么网站做任务网站标题更改后要多久才能收录

概述 异常的基类是 Throwable, Throwable 有两个子类: Exception : 表示可以恢复的异常, 编译器可以捕捉。Error : 表示编译时和系统错误, 表示系统在运行期间出现了严重的错误, 属于不可恢复的错误。 受检异常和非受检异常 受检异常指的是在编译期间会接受编译器检查, 且必…

怎样制作网站和软件wordpress扁平化风格主题

说明:跟着learnopengl的内容学习,不是纯翻译,只是自己整理记录。 强烈推荐原文,无论是内容还是排版。 原文链接 本文地址: http://blog.csdn.net/aganlengzi/article/details/50448453 坐标系统 Coordinate Systems 在…

济南优化网站排名郑州网络什么时候恢复

很多新手朋友在学习完数据结构与算法之后,都想找个平台磨练自己的技艺。那么LeetCode绝对是不二之选。但是官网刷题不是很友好,那么今天给大家介绍一款刷LeetCode神器。也是未来工作之后的摸鱼神器。 leetcode-editor 本打工人的摸(nei&am…

绝对域名做网站可以用asp做哪些网站

你为什么需要JpomSpringBoot、Jboot等框架开发的项目通常是以Jar的方式在后台运行的,如果只有一两个项目,管理起来不是太麻烦,但是当项目多了以后,管理起来就不是那么方便了,当项目出现问题时,能够通过Jpom…

《多分支条件判断优化:switch-case 结构的技术价值分析》

在程序开发过程中,条件分支控制是实现业务逻辑的核心手段。从简单的参数校验到复杂的状态流转,开发者都需要借助条件判断结构引导程序执行路径。if-else 与 switch-case 作为两种基础的分支控制结构,各自适用于不同…

大大福利站网站建设广东手机网站制作价格

目录 一、引言 视频效果展示: 1.启动页效果 2.登录页效果 3.注册页效果 4.歌曲列表页效果 5.播放页效果 二、详细设计 1.登陆注册功能 2.音乐列表页面 2.音乐播放功能 三、源码获取 一、引言 Android初学者开发第一个完整的实例项目应该就属《音乐播放器…

丰台seo网站关键词优化自动seo系统

table中合并单元格导致的css样式不同处理方式:1.每行都拆成一个table。2.多设置几个单元格的宽度(自适应失效、第一列都设置宽度也有可能失效)。

php开源企业网站系统北京 设计 网站建设

Centos7系统 docker指定版本安装【官方文档步骤】 官方文档地址:https://docs.docker.com/engine/install/centos/ # 1.安装yum工具及设置docker-ce镜像库 sudo yum install -y yum-utils# 国外的镜像下载太慢了改成阿里云镜像库 sudo yum-config-manager --add-rep…

南昌市有帮做网站的吗wordpress+防爬虫

一、前言知道的越多不知道的就越多编程开发这条路上的知识是无穷无尽的,就像以前你敢说精通Java,到后来学到越来越多只想写了解Java,过了几年现在可能想说懂一点点Java。当视野和格局的扩大,会让我们越来越发现原来的看法是多么浅…

宏重钢结构东莞网站建设nodejs做静态网站

前端调用后端接口,本域情况下,ajax方式调用,request header中包含x-requested-with信息。跨域情况下,request header中不再包含x-requested-with。说明:1.前端ajax封装的jquery的$.ajax方法。2.后端header相关设置已允…