Spring boot快速入门
- Spring Boot war包启动
- 什么是Spring boot
- 快速了解Spring Boot
- Spring boot入门实例
- springboot 整合freemarker
- Spring Boot使用FastJson解析JSON数据
- Spring Boot上传文件示例
Spring Boot CLI教程
开源项目
知识点
相关文章
更多最近更新
更多Spring Boot CLI使用Shell
2019-04-29 23:25|来源: 网路
Spring Boot CLI提供了一个Shell接口来运行命令,可以在其中直接运行命令,如下所示。 转到E:/Test文件夹并键入以下命令 -
E:/Test> spring shell
将会看到以下输出:
?[1mSpring Boot?[m?[2m (v2.0.5.RELEASE)?[m Hit TAB to complete. Type \'help\' and hit RETURN for help, and \'exit\' to quit.
在Shell中运行命令
输入以下内容并查看输出 -
version Spring CLI v2.0.5.RELEASE
可以按Tab
键自动完成命令,然后键入exit
以退出shell
控制台。
在shell中测试应用程序
输入以下内容并查看输出 -
E:\Test\FirstApplication>spring shell ?[1mSpring Boot?[m?[2m (v2.0.5.RELEASE)?[m Hit TAB to complete. Type \'help\' and hit RETURN for help, and \'exit\' to quit. $ test FirstApplication.groovy TestFirstApplication.groovy . Time: 0.347 OK (1 test) $ exit E:\Test\FirstApplication>
相关问答
更多-
一个最简单的 spring boot restful 例子。[2023-08-01]
建议你这样试试看: 1. 在 Eclipse 中新一个 maven 工程。 2. 修改 pom.xml 文件添加如下内容: 3. org.springframework.boot spring-boot-starter-parent 1.5.9.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-actuator org.springframework.bo ... -
是不是有一款什么手机软件,可以很自然的拉长腿部?不是美图秀秀,有知道的不?[2022-10-20]
spring -
spring boot cli是什么意思[2022-12-21]
spring boot cli 弹簧启动CLI spring 英[sprɪŋ] 美[sprɪŋ] n. 春季; 泉水,小溪; 弹簧,弹性; 跳跃; vi. 跳,跃; 突然发出或出现; 发源; 劈开,裂开; vt. 突然跳出; 跳过; 使开裂; [例句]The Labor government of Western Australia has an election due next spring 西澳大利亚工党政府明年春天要举行选举。 [其他] 第三人称单数:springs 复数:springs 现在分词: ... -
春天的英语怎么读?[2022-05-21]
spring -
你为什么不自己初始化它。 @Bean ObjectMapper objectMapper() { return new ObjectMapper(); } You can add spring-boot-starter-json if you want to avoid to include the full web stack (since Spring Boot v.2.0.0M4).
-
如何使用Spring Boot Remote Shell(CRaSH)发送本地文件(How to send local file using Spring Boot Remote Shell (CRaSH))[2022-01-16]
答案似乎是 - 这是不可能的,因为文件不能通过现有的/当前的SSH会话传输。 必须启动新的SCP会话进行文件传输。 就CRaSH shell而言,这意味着在执行命令之前必须将文件复制到目标系统,然后在本地引用。 The answer seems to be - it's not possible, because files cannot be transferred over existing/current SSH session. New SCP session must be initiated f ... -
我最近从Groovy项目启动了Spring Context ,它允许您使用repl groovy交互式控制台访问Remote Shell插件中的所有bean对象。 看起来像这样: $ ssh -p 2000 user@localhost user@localhost's password: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ ...
-
在用“spring-boot-starter-data-jpa”更改hibernate依赖关系和“spring-data-jpa”并添加“application.properties”之后,它解决了我的问题。 After changing hibernate dependencies and "spring-data-jpa" with "spring-boot-starter-data-jpa" and added "application.properties", it resolved my issu ...
-
您可以使用@ComponentScan's excludeFilters注释Spring Boot应用程序 @ComponentScan(basePackages = "your.package", excludeFilters = @Filter(SpringBootApplication.class)) 从这一点开始,您可能会遇到许多依赖性问题,您可以使用相同的原则解决它们。 然而 这可能在IDE中有效,但生成的spring boot jar只有一个主类属性。 因此, ...
-
看起来CRaSH的问题是groovy类扩展了其他groovy类,因为如果你不扩展它,它就可以了。 对不起,我没有时间全面研究如何以及为什么(更正/更新更受欢迎),并且在文档中没有找到任何内容,但好消息是你可以扩展一个抽象的java类来实现一样的东西。 我偶然发现了一个cron命令的示例,它使用以下javadoc扩展了GroovyCommand抽象类: /** * The base command for Groovy class based commands. */ public abstract cl ...