Wilson, who will start the Angels' second of the season, gave up one unearned run and four hits against an Oakland lineup that featured just one regular player.
"C.J. was great; he pounded the zone," Angels manager Mike Scioscia said. "It was good for him to get seven innings in."
Gray, meanwhile, got in his final work before he will take the ball on Opening Day in five days. The right-hander allowed one run on one hit and one walk in five innings. He struck out one.
"I'm ready," said Gray, who will make the start as part of his first Opening Day. "The most important thing is continue with the routine I've done all through Spring Training. ... It's going to be a big, but fun, week."
After Gray left, former A's prospect Green hit a two-run homer to center field off Jeff Urlaub and Boesch followed with a solo blast to right in the seventh inning.
The Angels added a run in the eighth and ninth, and A's Minor Leaguer Dusty Coleman homered off left-hander Joe Smith in the eighth.
It was the final Cactus League game of the season for both teams, and the last game at Phoenix Municipal Stadium, Oakland's Spring Training home since 1982. The A's will move to Hohokam Park in Mesa next year.
Up next: The Angels wrapped up Cactus League play Wednesday and will begin the Freeway Series against the Dodgers on Thursday at 7:10 p.m. at Dodger Stadium in a game being broadcast for free on MLB.TV and on Gameday Audio. Hector Santiago is scheduled to pitch Thursday, followed by Garrett Richards on Friday at Dodger Stadium. Tyler Skaggs will face the Dodgers at Angel Stadium on Saturday.
Chris Gabel is a reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.