Change your constructor to take org.springframework.core.io.Resource instead of String.
If your constructor-argument is of type String, Spring inserts the value just like you wrote it down. Your FileReader then looks for a file named mydoc.txt
in the folder classpath:document
(which on some operating systems - like windows - is not even a valid folder-name)
If your constructor-argument is of type Ressource, Spring assumes that the String you are injecting is a Spring-Ressource-Path and resolves that for you.