提交 693204ae 编写于 作者: C Chris Beams

Polish @Configuration Javadoc

Add note that nested @Configuration classes must be static.
上级 52bef0b7
...@@ -46,7 +46,8 @@ import org.springframework.stereotype.Component; ...@@ -46,7 +46,8 @@ import org.springframework.stereotype.Component;
* <li>Configuration classes must be non-final * <li>Configuration classes must be non-final
* <li>Configuration classes must be non-local (may not be declared within a method) * <li>Configuration classes must be non-local (may not be declared within a method)
* <li>Configuration classes must have a default/no-arg constructor and may not use * <li>Configuration classes must have a default/no-arg constructor and may not use
* {@link Autowired} constructor parameters * {@link Autowired} constructor parameters. Nested configuration classes must be
* {@code static}
* </ul> * </ul>
* *
* @author Rod Johnson * @author Rod Johnson
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册