我需要使用htaccess将特定的URL重定向到另一个特定的位置,我尝试了一些规则,但这只是更改域名。
我需要使用htaccess将Url1重定向到Url2。
@Service
public class PersonService {
@Autowired
private PersonRepository personRepository;
public Object findAll(){
return personRepository.findAll();
}
public Person findById(Long id){
return personRepository.findOne(id);
}