sun0x00 / redtorch

Kotlin(Java)开源量化交易开发框架
http://redtorch.io
758 stars 371 forks source link

SpringApplication.run(ZeusApplication.class, args) 执行出错 #7

Closed xiciliu closed 6 years ago

xiciliu commented 6 years ago

因为登录不成功,有404错误。所以尝试在ZeusApplication中执行main函数,里面就是 SpringApplication.run(ZeusApplication.class, args); 执行出错: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'zeusApplication': Unsatisfied dependency expressed through field 'tokenService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenServiceImpl': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'rt.web.username' in value "${rt.web.username}"

xiciliu commented 6 years ago

看到另一个issue,关于配置, #1 , 原来是application.properties文件位置不对,将它们放到 class的root下就好了。