This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| ... | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>1.6.0</version> | |
| <executions> | |
| <execution> | |
| <id>webpack build</id> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ErrorActionPreference = 'SilentlyContinue' | |
| $ProcessId = (Get-NetTCPConnection -LocalPort 8080).OwningProcess | |
| if ($ProcessId) { | |
| $Process = Get-Process -Id $ProcessId | |
| if ($Process) { | |
| $Process.CloseMainWindow() | |
| Sleep 100 | |
| if (!$Process.HasExited) { | |
| Stop-Process -Id $ProcessId -Force | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-maven-plugin</artifactId> | |
| <configuration> | |
| <includeSystemScope>true</includeSystemScope> | |
| </configuration> | |
| </plugin> | |
| </plugins> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.jdbc.core.PreparedStatementCreator; | |
| import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; | |
| import org.springframework.jdbc.core.namedparam.SqlParameterSource; | |
| import java.lang.reflect.Proxy; | |
| import java.sql.Connection; | |
| import java.sql.PreparedStatement; | |
| import java.util.function.Consumer; |