boot

重装Ubuntu系统重启卡住、卡在login界面、登录卡住

◇◆丶佛笑我妖孽 提交于 2020-01-01 21:05:26
1.修改grub引导 配置GRUB2引导加载程序设置   警告:GRUB2的默认配置文件是/boot/grub/grub.cfg。除非非常熟悉GRUB2,否则不应该编辑或修改这个文件。这是引导到Linux操作系统的主文件。如果您对这个文件做错了什么,那么您最终肯定会导致系统崩溃。所以,不要碰这个文件!   所有与GRUB2相关的设置都将存储在/etc/default/grub文件中。无论您在grub这个文件中做了什么更改,都会反映到GRUB2。   在进行任何更改之前,备份/etc/default/grub文件。 sudo cp /etc/default/grub /etc/defaultd/grub.bak 做完任何的修改后 ,都需要进行更 新: sudo update-grub sudo vim /etc/default/grub进行相关设置 grub设置参考 #我的grub配置文件,有时突然不能显示,由于电脑连接问题 GRUB_DEFAULT = saved GRUB_SAVEDEFAULT = true GRUB_TIMEOUT = 10 GRUB_DISTRIBUTOR = ` lsb_release -i -s 2 > /dev/null || echo Debian ` GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash" GRUB

Spring Boot (四)——理解 Spring Boot 项目中的 parent

做~自己de王妃 提交于 2020-01-01 17:28:30
理解 Spring Boot 项目中的 parent 前面一章讲了Spring Boot 项目的三种创建方式,这三种创建方式,无论是哪一种,创建成功后,pom.xml 坐标文件中都有如下一段引用: < parent > < groupId > org . springframework . boot < / groupId > < artifactId > spring - boot - starter - parent < / artifactId > < version > 2.2 .2 . RELEASE < / version > < relativePath / > < ! -- lookup parent from repository -- > < / parent > 对于这个 parent 的作用,你是否完全理解?有小伙伴说,不就是依赖的版本号定义在 parent 里边吗?是的,没错,但是 parent 的作用可不仅仅这么简单哦! 基本功能 当我们创建一个 Spring Boot 工程时,可以继承自一个 spring-boot-starter-parent ,也可以不继承自它,我们先来看第一种情况。先来看 parent 的基本功能有哪些? 定义了 Java 编译版本为 1.8 。 使用 UTF-8 格式编码。 继承自 spring-boot

Develop a Bootloader In Assembly

走远了吗. 提交于 2020-01-01 13:57:53
问题 I've already done a part of my OS in Assembly, but now I want to build a own bootloader for it too instead of using GRUB. When I was developing my test OS in Assembly I remember that I boot it like this: org 0x7c00 bits 16 ; OS Kernel Here times 510 - ($-$$) db 0 dw 0xAA55 This I've already know. Now I want to use this and execute the "real" OS that will be a *.bin file written to the 2nd sector of the floppy. Then I want to know somethings How can I do a bootloader in Assembly to execute

spring boot 启动报错 Unable to start embedded Tomcat

浪子不回头ぞ 提交于 2020-01-01 13:37:25
**背景:**spring boot启动时候报错(项目中有servlet): Unable to start embedded Tomcat - Spring Boot **原因:**是因为没有装servlet相关的依赖 **解决方法:**添加依赖如下 <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> </dependency> 参考如下:https://stackoverflow.com/questions/36859646/springboot-unable-to-start-embedded-tomcat 来源: CSDN 作者: qijingpei 链接: https://blog.csdn.net/qijingpei/article/details/103791659

Spring -> Spring Boot > Spring Cloud

柔情痞子 提交于 2020-01-01 09:30:17
这几天刚刚上班,公司用的是Spring Cloud,接触不多。我得赶快学起来。 想学习就必须得知道什么是微服务,什么是Spring Boot,什么是Spring Cloud,以及两者之间有什么关系? 网上找了一些答案,仅供参考。内容转自纯洁的微笑:https://www.cnblogs.com/ityouknow/p/7508306.html 什么是微服务? 简而言之,微服务架构风格是一种将单个应用程序作为一套小型服务开发的方法,每种应用程序都在自己的进程中运行,并与轻量级机制(通常是HTTP资源API)进行通信。 这些服务是围绕业务功能构建的,可以通过全自动部署机制独立部署。 这些服务的集中管理最少,可以用不同的编程语言编写,并使用不同的数据存储技术。系统中的各个微服务可被独立部署,各个微服务之间是松耦合的。每个微服务仅关注于完成一件任务并很好地完成该任务。在所有情况下,每个任务代表着一个小的业务能力。 微服务的一些常见误解 在同一范畴内比较才有意义: 微服务架构 vs. SOA – 两者都是架构风格范畴,但其关注领域与涉及范围不同。SOA更关注企业规模范围,微服务架构则更关注应用规模范围。 微服务组件 vs. 服务组件 – 两者都是描述业务功能的具体实现,其区别在于粒度不同,此外还有在可管理性、灵活性上的差异。 概念混淆的不恰当比较 微服务 vs. SOA – 不恰当的比较

说说SpringMVC、SpringBoot和SpringCloud三者之间的联系和区别

北慕城南 提交于 2020-01-01 09:24:09
这个问题是我在参加一次面试晚会活动上被问到的一个问题,看标题显然很简单就能够回答出来,但是仔细一琢磨,平时蒙头苦干的我们可能缺少关注和积累,好像并不能用较专业的术语和逻辑很顺畅的表达出来,于是我简要的翻了翻资料,然后整理出了这篇文章。 Spring框架是一个大集合,也像一个大家族【可以到spring.io官网了解】。但家庭成员的基础都是基于Spring的IoC和AOP特性, IoC提供了依赖注入(DI)的容器,可谓是核心,AOP则提供了面向切面的编程方案,在前两者的基础上,继续演化升级实现了其他延伸产品的高级功能。 内容提要 Spring MVC是基于Servlet实现的一个前端MVC框架,主要解决WEB项目开发的问题。因为在业务开发的过程中发现Spring的配置非常复杂,各种XML、Config等处理起来比较繁琐。于是为了简化开发者的使用,从而创造性地推出了Spring boot,约定优于配置,简化了spring的配置流程。在业务日益繁杂和庞大的进程中,很多企业已经疲于应付庞大的业务模块和错综复杂的数据交互,于是微服务的理念开始提了出来,Spring根据这个理念打造出来微服务全家桶Spring Cloud,这其中有非常多高效的组件活跃在微服务生态中,微服务是基于Spring Boot进行开发的. 简单通俗地来理解就是:Spring最初利用“工厂模式”(DI)和“代理模式”(AOP

How to make a bootable program?

一笑奈何 提交于 2020-01-01 03:30:10
问题 So, the question might seem strange, but let's say that I compile: int main(void) { int x = 3; int y = 4; int z = x + y; } Is it possible to make the CPU run just that? How? For example, would this allow me to write to the monitor? (If I remember it correctly, there are places in memory in which you can write stuff to be displayed.) 回答1: In the case of your program, it does not rely on any operating system services other than getting it started. If it were to additionally do input or output,

如何使用Spring Boot促进java开发?高级java架构师为您详解!

有些话、适合烂在心里 提交于 2020-01-01 01:18:37
您正在开发Java应用程序吗?Spring框架可能就是您的答案。帮助您快速获得结果既简单又有效。实际上,使用Spring Boot也可以简化复杂的旧版开发过程。通常,此过程是在使用JSP和servlet之前进行的。使用JSP和Servlet进行开发的过程并不容易。该过程缺乏可伸缩性,这使其非常复杂。该代码闻起来很糟,这使其可重用性很低! 使用Spring Boot是适合您的正确选择,因为它将涵盖整个过程而不会带来任何复杂性。如果您仍然对Spring Boot的使用感到困惑,请继续阅读,我们将对其进行更深入的探索。 什么是Spring&Spring Boot? Spring框架是使用最佳基础结构支持开发Java应用程序的有效解决方案。Spring的框架已包含一些无可挑剔的功能,这些功能无疑可以使您的应用程序具有优势。诸如依赖注入之类的属性在您的应用程序中得到了提升。不仅如此,使用Spring框架时还将为您提供模块帮助。 它包含了一些不错的功能,例如“依赖关系注入”和开箱即用的模块,例如: 春季MVC Spring JDBC 春季AOP 春季安全 春季测试 春季ORM 春季数据 还请参见: 机器学习中需要寻找的五件事 借助这些模块,您可以更快地开发应用程序,而不会出现任何问题。 什么是Spring Boot? 当涉及到Spring Boot时

一、springBoot自动配置原理

只谈情不闲聊 提交于 2020-01-01 01:11:14
我们在springBoot的启动类中,点击 @SpringBootApplication 注解,进入到注解类中,可以看到以下注解。 @Target ( { ElementType . TYPE } ) @Retention ( RetentionPolicy . RUNTIME ) //表示运行时生效 @Documented @Inherited @SpringBootConfiguration @EnableAutoConfiguration //自动配置注解 @ComponentScan ( excludeFilters = { @Filter ( type = FilterType . CUSTOM , classes = { TypeExcludeFilter . class } ) , @Filter ( type = FilterType . CUSTOM , classes = { AutoConfigurationExcludeFilter . class } ) } ) public @ interface SpringBootApplication { SpringBoot启动的时候加载主配置类,开启了自动配置功能 == @EnableAutoConfiguration == 进入到 @EnableAutoConfiguration 中,我们可以看到以下注解

Startup script with systemd in Linux

北城余情 提交于 2019-12-31 09:04:24
问题 Can I do This start up service below, there are no errors showing once run, but the server script below does not run! ln /lib/systemd/aquarium.service aquarium.service systemctl daemon-reload systemctl enable aquarium.service systemctl start aquarium.service thanks aquarium.service: [Unit] Description=Start aquarium server [Service] WorkingDirectory=/home/root/python/code/aquarium/ ExecStart=/bin/bash server.* start KillMode=process [Install] WantedBy=multi-user.target here is the server.sh