`
javandroid
  • 浏览: 26628 次
  • 性别: Icon_minigender_1
文章分类
社区版块
存档分类
最新评论

logistics-2-data model design

 
阅读更多

技术点:
1.oracle的安装和配置
2.plsql developer的使用
3.powerDesigner的使用

1:【Oracle和PLSQLDeveloper配置使用】

1.安装和配置oracle

2.创建用户
使用sqlplus,用system登陆,创建用户abc,并授予权限。

3.使用plsql developer工具
1>配置plsql developer。

2>用system连接oracle。


3>为bos系统建立oracle用户,并授权

查看plsql developer的users,检测是否创建成功。

此时,就可以用上面新创建的用户登录了。

此后,就可以使用该用户登录创建数据库了。

2:【使用PowerDesigner进行数据建模】

注意:一定要设置不区分 大小写,不然会在sql中表名和列名 多出一个””
设置Database菜单,然后点击Edit Current DBMS菜单,再依次点开Script->Format,然后找到CaseSensitivityUsingQuote
将其设为NO,即可

7:【编写Interceptor控制登陆访问】

【登陆拦截器】:
作用:用户不登陆就不让用户访问。
原理:判断session是否存在
步骤:使用springMVC的拦截器:
1.编写一个拦截器的类LoginInterceptor

/**
 * 登陆 控制拦截器
 * @author lp
 *
 */
public class LoginInterceptor extends HandlerInterceptorAdapter{
	// 所有页面都使用 PageController访问,只需要拦截 page.do
	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		// 如果用户没有登陆 返回false
		if(request.getSession().getAttribute("user")==null){
			// 跳转到登陆页面
			response.sendRedirect(request.getContextPath() + "/login.jsp"); 
			// 没有登陆
			return false;
		}
		return true;
	}
}
2.在springMVC配置文件springmvc-servlet.xml中配置拦截器类(【对比struts2的拦截器】)
<!-- 配置登陆访问拦截器 -->
<mvc:interceptors>
    <!--
	    <!-- 全局拦截器 都拦截 -->
	    <bean class="cn.itcast.bos.web.interceptor.LoginInterceptor" /> 
	-->
	<mvc:interceptor>
		<!-- 拦截登陆外 所有 .do 路径 -->
		<mvc:mapping path="/*.do"/>
		<mvc:exclude-mapping path="/login.do"/>
		<bean class="cn.itcast.bos.web.interceptor.LoginInterceptor" /> 
	</mvc:interceptor>
</mvc:interceptors>

分享到:
评论

相关推荐

    Proxy Pattern Informatization Research Based On SaaS

    The multi-user data model is a very important link in SaaS platform design. A good data model has a good scalability, can share the data and information well, and satisfy the users’ individual needs....

    Introduction to MATLAB for Engineers

    - **2.3–2 Aortic Pressure Model**: Here, MATLAB is used to model the pressure dynamics within the aorta, a critical application in biomedical engineering. This example showcases the use of ...

    SAP PI Handbook 71

    - **Defining a Process Model**: Creating a model that describes the flow of data and processes. - **Defining Interface Objects**: Specifying the interfaces used for communication between systems. - **...

    采购专业英文术语.doc

    * EDI (Electronic Data Interchange):电子数据交换 三、物流管理相关术语 * R&D (Research and Development):研发 * APS (Automated Purchasing System):自动采购系统 * CAD (Computer-Aided Design):计算机...

    Android高仿淘宝物流时间轴

    2. **物流数据模型(Logistics Data Model)**: 为了存储和展示物流信息,我们需要创建一个数据模型类,包括时间戳、物流状态、描述等属性。这些数据可以从服务器获取,通过JSON解析或者使用Gson库转换为对象。 3...

Global site tag (gtag.js) - Google Analytics