angular4中添加service的DI注入后,编译后在tomcat下运行,一直提示
(SystemJS) Can't resolve all parameters for TestComponent: (?).
syntaxError@http://localhost:8080/web/node_modules/@angular/compiler/bundles/compiler.umd.js:1513:34 [<root>]
CompileMetadataResolver.prototype._getDependenciesMetadata@http://localhost:8080/web/node_modules/@angular/compiler/bundles/compiler.umd.js:14790:35 [<root>]
CompileMetadataResolver.prototype._getTypeMetadata@http://localhost:8080/web/node_modules/@angular/compiler/bundles/compiler.umd.js:14658:21 [<root>]
CompileMetadataResolver.prototype.getNonNormalizedDirectiveMetadata@http://localhost:8080/web/node_modules/@angular/compiler/bundles/compiler.umd.js:14267:19 [<root>]
CompileMetadataResolver.prototype._getEntryComponentMetadata@http://localhost:8080/web/node_modules/@angular/compiler/bundles/compiler.umd.js:14911:40 [<root>]
Com