A footnote reference tag looks like this: [^1]
This reference tag is a mix of letters and numbers. [^footnote-42]
[^1]: This text is inside a footnote.
[^footnote-42]: This text is another footnote.
A footnote reference tag looks like this: [^1] This reference tag is a mix of letters and numbers. [^footnote-42]
[^1]: This text is inside a footnote. [^footnote-42]: This text is another footnote.
文档: Customization of HttpMessageConverter can be achieved in Java config by overriding configureMessageConverters() if you want to replace the default converters created by Spring MVC, or by overriding extendMessageConverters() if you just want to customize them or add additional converters to the default ones. 如果想替换默认的converter,通过重写configureMessageConverters()这个方法。 而如果你想添加一个自定义converter,通过重写extendMessageConverters()这个方法。
public class TestRunner { public static void main(String[] args) { Result result = JUnitCore.runClasses(LearnJunit.class); for (Failure failure : result.getFailures()) { System.out.println(failure.toString()); } System.out.println(result.wasSuccessful()); } }
编译运行的结果是:
1 2 3 4 5 6 7 8 9
this is before class method this is before this is the test case 1 this is after this is before this is the test case 2 this is after this is after class method true
最后的true是result.wasSuccessful()的结果,Result result = JUnitCore.runClasses(LearnJunit.class);是执行命令。