有同名的bean需要配置: spring.main.allow-bean-definition-overridingtrue 否则报错。
package cn.edu.tju.component;import org.springframework.stereotype.Component;Component
public class Person {private String name;private int age;{this.name "…
android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord 【Android TimeCat】 解决 context.startforegroundservice() did not then call service.startforeground() | XiChens Blog
http://www…