attch config in tomcat localhost
Merge pull request #146 from sunryuan/master

支持tomcat server使用localhost的配置方式