我尝试将现有项目升级到Spring 5和Spring Boot 2.0.0。有一个扩展public function handleProviderCallback()
{
$usersocialite = Socialite::driver('facebook')->fields([
'first_name', 'last_name', 'email', 'work'
])->user();
//dd($usersocialite);
$findUser = Fbuser::where('email',$usersocialite->email)->first();
if ($findUser) {
Auth::login($findUser);
return view('home');
}else{
$user = new Fbuser;
$user->first_name = $usersocialite->user['first_name'];
$user->last_name = $usersocialite->user['last_name'];
$user->email = $usersocialite->user['email'];
$work=$usersocialite->user['work'];
$w = collect([$work=>[$usersocialite->user['employer']=>[$usersocialite->user['name']]]]);
$flattened = $w->flatten();
$flatten->all();
$user->work = $usersocialite->user[$flatten];
$user->save();
Auth::login($user);
return view('home');
}
的类,它应该在UndertowEmbeddedServletContainerFactory
包中。但是,我在当前的Spring Boot 2.0.0.M1 / M2 / M3 / BUILD-SNAPSHOT中看不到这个软件包或接口。该文档似乎仍然引用了此接口API Docs。
此接口是否被其他内容替换?
原始代码:
org.springframework.boot.context.embedded.undertow
答案 0 :(得分:11)
UndertowEmbeddedServletContainerFactory
已在2.0中重命名。现在是UndertowServletWebServerFactory
。我注意到你也在使用EmbeddedServletContainerCustomizer
。它在2.0中的等价值是org.springframework.boot.web.server.WebServerFactoryCustomizer
。