c******n 发帖数: 4965 | 1 --- "@Component is like a global service that has namespace"
what is the namespace ?
if in 2 libraries, written by 2 people, both mark
@Component
public class AuthorA implements SomeInterface {
}
@Component
public class AuthorB implements SomeInterface {
}
now in my application code, I just want to grab an "author", and do
public class MyTestSuite {
@Autowired
SomeInterface blah;
...
}
here since AuthorA and AuthorB are both discovered as "@Component", they are
like global variables, and makes... 阅读全帖 |
|
n***r 发帖数: 93 | 2 想得到这样的引用:
AuthorA (year) blah blah.....blah blah (authorB, year, authorC, year,....)
blah blah.....
这里有两个问题.1: authorA的引用只是年份,怎么实现?
2: 如果authorB,authorC这个引用里面引用比较多(可能还有authorD,E,F等很多引用),
lyx排版的时候是把所有引用放在同一行,结果是只显示了前面几个人,超出页面长度的
都没有了.有什么办法让lyx自动多行排版吗?
thanx a lot |
|