我在启动IBM Websphere服务器时获取数据源的javax.naming.NameNotFoundException。您可以告诉我为什么会出现此错误。
错误:
import React from 'react';
import NotFound from './NotFound';
const ViewProfile = ( {currentUser} ) => {
//console.log(currentUser);
return (currentUser) ? (
<p>{ currentUser.fname }</p>
<p>{ currentUser.lname }</p>
<p>{ currentUser.email }</p>
) : <NotFound />;
};
ViewProfile.propTypes = {
currentUser: React.PropTypes.object,
};
export default ViewProfile;