Update README.md

use JavaConfig