如何写“@”在javadoc中?
我的 javadoc 代码示例中有一个 @
:
* <pre>
* public class ArticleService<Article, ArticleDao> {
* @Autowired
* private ArticleDao articleDao;
* protected ArticleDao getDao() { return articleDao; }
* }
* </pre>
它破坏了 javadoc,因为预览看起来像:
如何解决?
There is a @
in my code example in javadoc:
* <pre>
* public class ArticleService<Article, ArticleDao> {
* @Autowired
* private ArticleDao articleDao;
* protected ArticleDao getDao() { return articleDao; }
* }
* </pre>
It breaks the javadoc, because the preview looks like:
How to fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
{ @literal}
标签:我刚刚测试了这个以确保它有效......并且它确实有效
Use the
{@literal}
tag:I have just tested this to make sure it works... and it does
只需将 @ 替换为
@
:Simply replace @ with
@
: