By Jill Colvin, Associated Press

NASHVILLE โ€” President Donald Trump is paying homage to a predecessor, Andrew Jackson, with the highest form of flattery. Trump says the nationโ€™s seventh president reminds him an awful lot of himself.

The president paid a visit Wednesday to The Hermitage โ€” Jacksonโ€™s Nashville home โ€” to commemorate what would have been Jacksonโ€™s 250th birthday.

Trump hailed Jackson as โ€œone of our great presidentsโ€ and described some of their similarities. Trumpโ€™s team has long seized on parallels between the current president and the Tennessee war hero, comparing Jacksonโ€™s triumph in 1828 over President John Quincy Adams to Trumpโ€™s victory over Hillary Clinton last year.

Trump described Jackson as a fellow outsider who pledged to represent the forgotten worker and took on the Washington establishment.

โ€œIt was during the revolution that Jackson first confronted and defied an arrogant elite,โ€ Trump said.

โ€œDoes that sound familiar to you?โ€ he asked his crowd. โ€œOh, I know the feeling, Andrew.โ€

Trump said Jacksonโ€™s victory โ€œshook the establishment like an earthquakeโ€ and talked about how heโ€™d tried to sweep out government corruption, improve veteransโ€™ care and impose tariffs on foreign countries to protect American workers โ€” all things Trump pledged to do during his campaign.

Trump spoke after taking a tour of the property, which included a stop at the homeโ€™s library. There, the curator told Trump that Jackson subscribed to 16 newspapers and made notes on stories about which ones he liked and disliked.

On one editorial, he drew a big black โ€œX’โ€ to show his disapproval.

โ€œWe know that feeling,โ€ said Trump, who has been known to scrawl angry notes on reportersโ€™ stories with a black Sharpie and send the marked-up stories back to them.

Following a tour of the property the president placed a wreath at Jacksonโ€™s tomb. He stood, saluting, as taps played.

Jackson has enjoyed a moment of resurgence thanks to Trump, who mused during his first days in Washington that โ€œthere hasnโ€™t been anything like this since Andrew Jacksonโ€ and hung a portrait of Jackson in the Oval Office after moving in.

Historians had been souring on the slave-owning president, whose Indian Removal Act of 1830 commissioned the forced removal of Native Americans from their ancestral homelands. More than 4,000 died during their journeys west.

Jacksonโ€™s standing had fallen so much that that the U.S. Treasury opted to remove Jackson from the $20 bill.

But Howard Kittell, the President and CEO of the Hermitage mansion, said attendance at the museum has surged since the election.

โ€œJackson is probably getting more media attention now than when he was president,โ€ he said.

(Follow Colvin on Twitter at https://twitter.com/colvinj)