我的客户的网站(http://mannbilly.com/)是实时的,他注意到在他的工作部分的所有最后一项都是(https://www.youtube.com/watch?v=6ztm7YkLElI)的一个链接。我找不到Ctrl+F
时,我发现了一个结果但在Chrome中检查它是否与链接到该视频的每个项目相邻。
<h4 class="section-title">VOICEOVER/SINGING</h4>
<div class="item">Hasbro Toys Commercial (2016)</div>
<div class="item"><a href="https://www.youtube.com/watch?v=uV9s5Ggy3Hk">Scottdw</div>
<div class="item"><a href="https://www.youtube.com/watch?v=6ztm7YkLElI">Devinsupertramp</div>
<div class="item">Operatic training – Gary Aldrich (3 months)</div>
<div class="item">Barbershop Choir – Bill Weiser (2 months)</div>
<h4 class="section-title">THEATER</h4>
<div class="item">‘A Christmas Carol’ – Young Ebenezer/Ensemble/Ghost of Christmas Present (understudy)</div>
<div class="item">Adam Cates – Tony Award for “A Gentleman’s Guide To Love and Murder”</div>
<div class="item">University of Nevada Reno</div>
</section>
我的问题首先是如何可能,然后我该如何解决?
请感谢任何见解或帮助。我被困在谷歌,开发者朋友或我的参考书中没有运气。
答案 0 :(得分:8)
这个链接/ @Component
public class Main implements RPCInterface {
@Autowired
private ServiceA serviceA;
@Override
public void outerMethod() throws ExceptionO {
try {
serviceA.methodA();
} catch (ExceptionOne e) {
throw new ExceptionO(e.getMessage, e);
} catch (ExceptionTwo e) {
throw new ExceptionO(e.getMessage, e);
} catch (ExceptionThree e) {
throw new ExceptionO(e.getMessage, e);
}
}
}
@Service
public class ServiceA implements SA {
@Autowired
private ServiceA1 serviceA1;
@Autowired
private ServiceB serviceB;
@Autowired
private ServiceC serviceC;
@Override
@Transactional (value="txManager", propagation=Propagation.REQUIRED, rollbackFor={ExceptionOne.class, ExceptionTwo.class, ExceptionThree.class})
public void methodA() throw ExceptionOne, ExceptionTwo, ExceptionThree {
serviceA1.methodA1();
serviceB.methodB();
serviceC.methodC();
}
}
@Service
public class ServiceA1 implements SA1 {
@Autowired
private ServiceDBTable1 serviceDBTable1;
@Autowired
private ServiceA1A serviceA1A;
@Transactional
@Override
public void methodA1() {
serviceDBTable4.callToMapper4();
serviceA1A.methodA1A();
}
}
@Service
@Transactional (value="txManager", propagation=Propagation.REQUIRED)
public class ServiceA1A implements SA1A {
@Autowired
private ServiceDBTable2 serviceDBTable2;
@Override
public void methodA1A() {
serviceDBTable1.callToMapper1();
}
}
@Service
public class ServiceB implements SB {
@Autowired
private ServiceDBTable3 serviceDBTable3;
@Override
@Transactional (value="txManager", propagation=Propagation.REQUIRED)
public void methodB() {
serviceDBTable3.callToMapper3();
}
}
@Service
public class ServiceC implements SC {
@Override
public void methodC() throws ExceptionThree {
// code that throws ExceptionThree
}
}
标记是未公开的,因此它会将链接后面的所有HTML放入其中。
a
需要
<div class="item"><a href="https://www.youtube.com/watch?v=6ztm7YkLElI">Devinsupertramp</div>