- 博客(10)
- 收藏
- 关注
原创 Eureka
服务发现在微服务应⽤中,服务实例的运⾏环境会动态变化,实例⽹络地址也是如此。因此,客户端为了访问服务必须使⽤服务发现机制。服务注册表是服务发现的关键部分。服务注册表是可⽤服务实例的数据库,提供管理 API 和查询 API。服务实例使⽤管理 API 来实现注册和注销,系统组件使⽤查询 API 来发现可⽤的服务实 例。 服务发现有两种主要模式:客户端发现和服务端发现。在使⽤客户端服务发现的系统中,客户端查询服务注册表,选择可⽤的服务实例,然后发出请求。在使⽤服务端发现的系统中,客户端通过路由转发
2020-12-06 20:02:07
169
原创 SQL 练习
DDL语言create,alter,drop数据库对象2.删除数据表drop table teacher3.在tname创建唯一约束alter table teacher add constraint un_tname unique(tname)4、删除唯一约束alter table teacher drop index un_tname5、修改tname不可为空alter table teacher modify tname char(8) not null6、添加数据(插入数据)i.
2020-12-03 22:09:27
1056
原创 SQL视图
视图1、创建女生全部信息的视图create or replace view v_falesyu as select * from student where ssex='女'with check option操作 select * from v_falesyudrop view v_falesyudesc v_falesyushow table status like 'v_falesyu'show create view v_falesyuselect * from informati..
2020-12-03 22:06:59
241
原创 SQL 多表查询 嵌套查询
多表查询1、结构:select from WHERE2、笛卡尔积查询select * from student,courseselect * from student,sdept3、查询每个学院的学生情况select * from student,sdept where student.deptno=sdept.deptno4、查询计算机学院所有的学生记录select * from student,sdept where student.deptno=sdept.deptno and sde
2020-12-01 20:12:44
2754
原创 SQL 查询
1.求各学院的学生人数select deptno,count(*) from student group by deptno2、查询学生表中男生女生各有多少人select ssex,count(*) from student group by ssex3、查询01院系的男生女生各多少select ssex,count(*) from student where deptno='01' group by ssex4.查询学生表各院系男生女生多少人select deptno,ssex,count(
2020-12-01 20:10:05
1012
原创 SQL函数
函数(count()、sum()、avg()、max()、min())1、查询学生表中多少人select count(*) from student2、查询学院表中有多少个学院select count(*) from sdept3.查询score表中有多少名学生选修了课程select count(distinct sno)from score4.查询选修了课程A001的学生人数select count(*)from score where cno="A001"5、查询课程号为A002课程.
2020-11-30 20:04:24
188
原创 SQL update语句delete 语句查询语句
UPDATE语句1.修改计算机专业的联系方式为”1111111“update sdept set telephone="1111111" where dname="计算机学院"2.修改学生信息,将"01"学院的学生年龄加1update student2 set sage=sage+1 where deptno="01"3.将C语言这门课学分改为3.5分update course set ccredit=3.5 where cname="C语言"4.修改score,将”A002“这门课不及格的.
2020-11-30 20:02:25
1957
原创 MyBatis application配置文件例
server: port: 8080spring: datasource: name: mysql_test type: com.alibaba.druid.pool.DruidDataSource #druid相关配置 druid: #监控统计拦截的filters filters: stat driver-class-name: com.mysql.jdbc.Driv.
2020-11-25 20:56:16
728
原创 SpringBoot常用注解
SpringBoot常用注解1、@Configuration 作用于类上,相当于把该类作为spring的xml配置文件中的Beans,作用为:配置spring容器(应用上下文),@Configuation等价于<Beans></Beans>;2、@Bean 作用于方法上,相当于xml配置中的Bean, @Bean等价于<Bean></Bean>;3、@SpringBootApplication注解是Spring Boot的核心注解,用于标注程序是.
2020-11-24 20:30:28
99
原创 Spring、SpringMVC和Springboot的区别
Spring、SpringMVC和Springboot的区别spring boot就是一个大框架里面包含了许许多多的东西,其中spring就是最核心的内容之一,当然就包含spring mvc。spring mvc 是spring 处理web层请求的一个模块。因此他们的关系大概就是这样:spring mvc < spring <springboot。spring boot 就是把 spring spring mvc spring data jpa 等等的一些常用的常用的基础框架
2020-11-24 20:12:25
141
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人