<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
spring.aop.auto=true
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
spring.aop.auto=true
This is a Spring Boot application that provides a REST API endpoint to transfer data from a source table to a destination table in a database. The source table, destination table, and columns to be transferred can be configured through a properties file.
import React from 'react'; | |
import {HashRouter,Link,Route,Switch} from "react-router-dom"; | |
const Stand = ()=>{ | |
return( | |
<Stand/> | |
) | |
} | |
const Sit = ()=>{ |
import React from 'react'; | |
import {BrowserRouter,Link,Route,Switch} from "react-router-dom"; | |
const Stand = ()=>{ | |
return( | |
<Stand/> | |
) | |
} | |
const Sit = ()=>{ |
<button onClick={()=>{ | |
console.log('sync',ipcRenderer.sendSync('anything-synchronous', 'ping')) | |
// prints "sync pong" | |
}}> | |
Sync | |
</button> |
ipcMain.on('anything-synchronous', (event, arg) => { | |
console.log("sync",arg) // prints "sync ping" | |
//reply | |
event.returnValue = 'pong' | |
}) |
<button onClick={()=>{ | |
ipcRenderer.send('anything-asynchronous', 'ping') | |
// reply | |
ipcRenderer.on('asynchronous-reply', (event, arg) => { | |
console.log("Hiii",arg) // prints "Hiii pong" | |
}) | |
}}> | |
Async |
ipcMain.on('anything-asynchronous', (event, arg) => { | |
console.log("async",arg) // prints "async ping" | |
event.reply('asynchronous-reply', 'pong') | |
}) |
//write this below the app.whenReady() function in the main.js file | |
ipcMain.on('anything-asynchronous', (event, arg) => { | |
// gets triggered by the async button defined in the App component | |
console.log("async",arg) // prints "async ping" | |
}) | |
// gets triggered by the sync button defined in the App component | |
ipcMain.on('anything-synchronous', (event, arg) => { | |
console.log("sync",arg) // prints "sync ping" |
import React from 'react'; | |
import './App.css'; | |
const { ipcRenderer } = window.require('electron'); | |
function App() { | |
return ( | |
<div className="App"> | |
<button onClick={()=>{ | |