禁用(neo)vim中的背景透明度(Disable background transparency in (neo)vim)
我在Konsole运行Neovim 0.2.1,后面是i3和Compton。 我在Konsole中使用了一点透明度来获得更加精巧的体验,但鉴于我使用vim作为我的主要编辑器,我宁愿在那里没有透明度,因为它有点分散注意力。 我的配色方案是vim-monokai 。
真正让我感到头疼的是我有两台电脑,两台电脑都运行相同的设置(英特尔集成显卡,i3,康普顿,Konsole,zsh,相同的neovim版本和插件)。 一个在终端没有透明度,而另一个没有透明度。
I'm running Neovim 0.2.1 in Konsole with i3 and Compton in the back. I'm using a little bit of transparency in Konsole for a more dapper experience, but given that I use vim as my primary editor I'd prefer to not have transparency there as it's a little bit distracting. My colour scheme is vim-monokai.
What's really got me scratching my head is that I have two computers, both running virtually the same setup (Intel integrated graphics, i3, Compton, Konsole, zsh, same neovim version and plugins). One does not have transparency in its terminal, while the other does.
原文:https://stackoverflow.com/questions/46570644
最满意答案
这是spring-boot中的一个错误。 作为解决方法,我删除了spring.quartz.job-store-type属性,然后在customizer中配置了DataSource和PlatformTransactionManager。 请参阅以下更新代码:
@Configuration public class SchedulerConfig { private DataSource dataSource; private PlatformTransactionManager transactionManager; @Autowired public SchedulerConfig(@Qualifier("schedulerDataSource") DataSource dataSource, @Qualifier("schedulerTransactionManager") PlatformTransactionManager transactionManager) { this.dataSource = dataSource; this.transactionManager = transactionManager; } @Bean public SchedulerFactoryBeanCustomizer schedulerFactoryBeanCustomizer() { return bean -> { bean.setDataSource(dataSource); bean.setTransactionManager(transactionManager); }; } }
This is a bug in spring-boot. As a workaround, I removed spring.quartz.job-store-type property and then configured DataSource and PlatformTransactionManager in customizer. Refer below updated code:
@Configuration public class SchedulerConfig { private DataSource dataSource; private PlatformTransactionManager transactionManager; @Autowired public SchedulerConfig(@Qualifier("schedulerDataSource") DataSource dataSource, @Qualifier("schedulerTransactionManager") PlatformTransactionManager transactionManager) { this.dataSource = dataSource; this.transactionManager = transactionManager; } @Bean public SchedulerFactoryBeanCustomizer schedulerFactoryBeanCustomizer() { return bean -> { bean.setDataSource(dataSource); bean.setTransactionManager(transactionManager); }; } }
相关问答
更多-
Spring Boot:在Quartz作业执行中使用@Service(Spring Boot: Using a @Service in Quartz job execution)[2023-11-28]
SpringBeanAutowiringSupport使用Web应用程序上下文,这在您的案例中不可用。 如果你需要一个弹簧管理的石英豆,你应该使用弹簧提供的石英支撑。 这将使您可以完全访问所有托管的bean。 有关更多信息,请参阅http://docs.spring.io/spring/docs/current/spring-framework-reference/html/scheduling.html上春季文档中的石英部分。 另请参见以下使用弹簧管理bean的石英使用示例。 示例基于您的代码。 所以你可 ... -
这是spring-boot中的一个错误。 作为解决方法,我删除了spring.quartz.job-store-type属性,然后在customizer中配置了DataSource和PlatformTransactionManager。 请参阅以下更新代码: @Configuration public class SchedulerConfig { private DataSource dataSource; private PlatformTransactionManager tran ...
-
要修复代码中的complilation错误: use scheduler.getTrigger(new TriggerKey(name,JOB_GROUPNAME)); 使用scheduler.rescheduleJob(new TriggerKey(name,JOB_GROUPNAME),trigger); 将CronTrigger转换为具有setCronExpression()方法的CronTriggerImpl 在github上查看我的Spring Boot + Quartz示例项目: https : ...
-
Spring Boot和Spring Session:如何控制数据源(Spring Boot and Spring Session: How to control the DataSource)[2023-10-03]
Spring Session本身并不创建DataSource ,而是使用应用程序上下文中的一个,如果它是以下两者之一: 唯一的DataSource bean DataSource标记为@Primary 另外,如果您希望为Spring Session使用特定的DataSource (例如,如果您的应用程序中有多个DataSource ),则可以通过以下方式来实现: 通过@SpringSessionDataSource标注为Spring会话指定的DataSource (Spring Session 2.0起) ... -
问题在于,默认情况下不使用事务管理器,因此不使用锁定。 要解决此问题,需要调用schedulerFactoryBean的setTransactionManager方法。 The problem is the fact that by default no transaction manager is used, so no locking is used. To solve the issue, it is required to call the schedulerFactoryBean's setTra ...
-
基本上你需要告诉春天哪些实体属于哪个数据库。 以下代码假定Spring Boot 2.0。 您还需要配置哪个存储库属于哪个配置。 对于存储库,这是通过@EnableJpaRepositories完成的,而实体包是在LocalContainerEntityManagerFactoryBean中指定的。 主数据库配置: @Configuration @EnableTransactionManagement @EnableJpaRepositories( basePackages = {"prim ...
-
如何使用Spring Boot 2.0指定Hibernate映射?(How to specifiy Hibernate mappings with Spring Boot 2.0?)[2022-10-15]
从Spring Boot 2.0.0.M6开始,您应该使用新的spring.jpa.mapping-resources属性来定义自定义映射,而不是覆盖Spring Boot的内部。 YML中的示例: spring: jpa: mapping-resources: - db/mappings/dummy.xml 有关完整示例,请检查此存储库的application.yml配置文件 。 Since Spring Boot 2.0.0.M6, rather than overriding Spring Boot' ... -
这对我有用: @Controller public class JobController { @Autowired private Scheduler scheduler; @Autowired private ApplicationContext context; @ResponseBody @RequestMapping("/job/create/daily") public String dailyJob() throws Schedul ...
-
关于Quartz.net 2.0实现的问题和帮助(Questions and help regarding the implementation of Quartz.net 2.0)[2023-05-16]
好的,对于任何寻找文档的人来说,我能找到的最好的是W0lf在评论中链接的Java文档。 由于Quartz.net是Java版本的一个端口,因此文档类似于开始理解一些内部工作。 我正在开发一些简单的工作来测试和获得经验。 希望我能在某些时候为社区做出贡献。 找到另一个很好的信息来源。 时间轴从使用1.0开始,然后迁移到2.0。 但那里有很多信息,我不能感谢作者的工作。 这是一个链接: http : //jvilalta.blogspot.com 另一方面,我对Marko Lahma有点苛刻。 他正在帮助提供我 ... -
在Spring Boot中部署Quartz时出现NullPointerException(NullPointerException while deploying Quartz in Spring Boot)[2023-10-17]
Spring Boot为你管理它。 删除石英依赖项,只需为计划执行创建一个Service : @Service public class JobScheduler{ @Autowired JobController controller; //Executes each 5000 ms @Scheduled(fixedRate=5000) public void performJob() { controller.doPrintData(); ...