标签: java spring enumeration
//Can not add @Component annotations, error Public enum EArith { ADD, SUBTRACT, MULTIPLY, DIVIDE } @Component Public class Test{ @Autowired EArith[] eAriths; // error }
我的想法是让弹簧加上EArith枚举加,减,乘和除数组,对不起,如何实现?