Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x

目录

上一篇博客讲了WebSphere Application Server如何安装,今天来说一下。如何使用它部署Spring Boot2.x项目。部署时我们需要 注意 哪些 关键性的问题

1:创建JDBC 提供程序

登录成功之后如下图所示:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
按步骤选择相应的服务器节点如下图所示:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
点击新建如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
选择相应的驱动属性 点击下一步如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
一定要填写绝对路径 点击确定如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
下一步如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
点击完成如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
保存 如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x

2:创建数据源

点击数据源并选择其 作用域范围 如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
点击新建如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
JNDI名称 必须 与项目配置文件中一模一样,然后点击下一步,如下:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
项目配置文件如下图所示:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
选择现有的JDBC驱动程序 点击下一步如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
如下图 xxx.xxx.xxx.xxx 部分是你的数据库 IP ,点击下一步:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
这里先不创建认证信息 点击下一步:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
点击 完成:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
可见下方红框内已经显示我们新建的数据源了 点击 保存如下:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x

3:创建数据源认证信息(JAAS - J2C)

Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
进入数据源详情页点击 JAAS - J2C认证数据
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
点击 “新建” 填写相应的信息:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
填写数据源用户名及密码认证信息如下图:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
点击 “应用” 以及 “保存” :
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x

4:认证数据源

点击 进入数据源详情信息页面,然后往下找到 (安全性设置–>组件管理的认证别名 )选择认证信息点击 “应用”:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x
测试数据源:
Windows -- IBM WebSphere Application Server 9.0.0.2 部署Spring Boot 2.x

5:Spring Boot 项目配置

: