Can't get devtools auto build service working on Windows...

已回答

Hello,

As mentioned I'm trying to get auto build functionality configured for my Spring app as per these instructions:

1) add: 

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>

to pom,

2) Settings: Build ,Execution, Deployment => Build Project Automatically

3) ctrl + alt + shift + /   = Registry - Enable 'compiler.automake.allow.when.app.running, property.

I restart Intellij, rebuild my app and start, make a change to one of the beans, does not auto recompile.

what am i missing?

评论操作 固定链接

Do you save the file using Ctrl+S (Save All)?

0
评论操作 固定链接

yeah... tried this on a 2nd project and it seems to be working. However, (and this might have been the problem I thought I had on the prior project) it seem to take ~5 seconds after the source save before the rebuild kicks off. I may not have noticed that before.

At any rate it seems to be working now. Sorry for the false alarm.

0
评论操作 固定链接

Help | Find Action | Registry:

compiler.document.save.enabled — Specify whether project save in response to document changes is enabled
compiler.document.save.trigger.delay — Delay in milliseconds before triggering save in response to document changes
compiler.automake.postpone.when.idle.less.than — If at the moment the autobuild is about to start the IDE is idle for less than specified milliseconds, the automatic build will be postponed in order not to interfere with the user's activity
compiler.automake.trigger.delay — Delay in milliseconds before triggering auto-make in response to file system events

3
评论操作 固定链接

I tried adjusting all of the above and the time to rebuild is still the same. Which flag is it?

0
评论操作 固定链接

Anthony Alayo

> I tried adjusting all of the above and the time to rebuild is still the same. 

None of these settings affect the rebuild time. If your issue is with the build performance, please open a ticket with support at https://intellij-support.jetbrains.com/hc/requests/new and provide more details.

0
评论操作 固定链接

Sorry if it wasn't clear -- I'm referring to the parameters you provided to tweak the delay with spring boot devtools. I tried tweaking all of the above parameters and yet I'm still seeing a delay when it comes to recompiling a small string change. Is there documentation to getting performant usage with devtools and IntelliJ?

0

请先登录再写评论。