没有合适的资源?快使用搜索试试~ 我知道了~
SSM框架下实现登录注册的示例代码
5星 · 超过95%的资源 6 下载量 57 浏览量
2020-08-19
02:47:35
上传
评论
收藏 80KB PDF 举报
温馨提示
试读
5页
主要介绍了SSM框架下实现登录注册的示例代码,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
资源推荐
资源详情
资源评论
SSM框架下实现登录注册的示例代码框架下实现登录注册的示例代码
主要介绍了SSM框架下实现登录注册的示例代码,文中通过示例代码介绍的非常详细,对大家的学习或者工作
具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
基本配置:jdk1.8 tomcat 8 MyEclipse
先打好地基:
spring配置文件 application.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
<!-- 通过注解,将Service的生命周期纳入Spring的管理 -->
<context:annotation-config />
<!-- 通过注解,将Service的生命周期纳入Spring的管理 -->
<context:component-scan base-package="service"></context:component-scan>
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<!-- 配置数据源 -->
<property name="driverClassName">
<value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value>
</property>
<property name="url">
<value>jdbc:sqlserver://localhost:1433;DatabaseName=Organic
</value>
</property>
<property name="username">
<value>sa</value>
</property>
<property name="password">
资源评论
- 萱呀2023-07-24代码结构清晰,注释详细,帮助我理解了整个登录注册流程的实现方式。
- lirumei2023-07-24这个文件提供了一个简单易懂的登录注册示例,让我迅速上手了解了SSM框架的运用。
- 有只风车子2023-07-24尽管这个文件并没有包含太多的高级技术和复杂功能,但对于初学者来说,它是一个很好的入门指南和学习资源。
- 实在想不出来了2023-07-24示例代码中使用的技术栈和常见的使用场景相符,让我能够将学到的知识直接应用到实际项目中。
- 神康不是狗2023-07-24文件中给出了一些独到的实现思路和解决方案,为我提供了一些新的启发和思考。
weixin_38643401
- 粉丝: 5
- 资源: 954
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功