Question: I have a following lines of code in python. I have to copy from table and pass it to the given file location. I do have a file named distance.txt but it errors file not found as file is already available in that location. 

Can anybody tell what mistake I did.

```
cur.execute(("""COPY (select source, target, sum(cost)/1000 as cost from dm where source != 88888888 and target != 88888888 group by source, target order by source) TO '%s\\distance.txt'""") % (os.getcwd()))
con.commit()

```

Answer: 
I had a similar problem, It got fixed after I added: 

```
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>

```
Try moving `EnableBinding` annotation to `DemoApplication` class. I believe it should be put on `@Configuration` class, not on arbitrary `@Component`.