我使用maven插件来设置这样的主类:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.myapp.main.MainClass</mainClass>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
但有时我想用另一个主类运行我的应用程序.执行此操作的命令行参数是什么?
java -jar myapp-1.0.jar ...
Run Code Online (Sandbox Code Playgroud)
谢谢
我有Foo类的RDD : class Foo( name : String, createDate : Date ). 我想要一个年龄大10%的其他RDD Foo.我的第一个想法是排序createDate和限制0.1*计数,但没有限制功能.
你有个主意吗?
如何在 Spring Boot 应用程序中禁用事务管理器?
我有这个例外:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined
Run Code Online (Sandbox Code Playgroud)
因为@Transactional注释(我在其他应用程序中使用这些注释,所以我无法删除,但有办法忽略它?通过禁用事务管理器?)。