GLENDALE, Ariz. -- Melky Cabrera showed off his offensive prowess on Tuesday.
Barry Zito gave up four hits and two runs and got the win for the Giants.
Ted Lilly struggled as he allowed five runs, including two homers, in two innings for Los Angeles.
Cabrera led off the game with a right-handed homer off Lilly that sailed over the left-field bullpen.
The Giants acquired Cabrera from the Royals to help bolster their offense.
"I don't care if it's spring training," Giants manager Bruce Bochy said. "That's impressive. Few guys can or have done that. A great job on his part."
Lilly also gave up three hits and two runs in the second inning.
"I'm not so much concerned, just not happy with the outcome," Lilly said.
"If I search hard and try to be positive, I came out of it healthy. Even though it's spring training, I'm looking for results."
Lilly said he struggled to locate his fastball, then had to throw more breaking balls than he'd planned.
Zito threw 28 strikes out of 35 pitches in his first spring outing. He struck out Matt Kemp and had some other Dodger hitters off balance.
"I'm happy with it," he said.
His manager was also pleased.
"I thought Barry looked great," Bochy said. "He should feel good about that outing."
Zito was "a little uncomfortable" pitching out of the windup, which he has been tinkering with, so he pitched to one batter in the third inning, Bochy said.
The Giants finished with 16 hits. Cabrera, Pill, Burriss, Joe Panik and Nate Schierholtz, each had two hits.
Aaron Harang will start Wednesday for the Dodgers. ... With the left-hander Zito on the mound, Ethier hit fifth for the Dodgers instead of fourth, behind Juan Rivera, something that could be routine in the regular season. ... Scott Van Slyke, who homered for the Dodgers on Monday will work "in different spots in the outfield, right or left, get some at-bats, get some experience," manager Don Mattingly said. "He's coming off a good year (in the minors). He's probably coming in with a lot of confidence. It's a good chance for him to show people what he can do."