Skip to content

Commit

Permalink
myblog
Browse files Browse the repository at this point in the history
  • Loading branch information
qw782379780 committed Jan 11, 2018
0 parents commit d596574
Show file tree
Hide file tree
Showing 430 changed files with 142,854 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
51 changes: 51 additions & 0 deletions sshTest/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/Sun JDK 1.6.0_13"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/antlr-2.7.7.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/asm-attrs-2.2.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/asm.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/cglib-3.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-collections-3.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-logging-1.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/ehcache.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/hibernate3.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jta-1.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/log4j-1.2.17.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-aop-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-aspects-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-beans-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-context-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-core-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-orm-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-test-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-tx-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-web-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/asm-3.3.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/asm-commons-3.3.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/asm-tree-3.3.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-fileupload-1.3.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-io-2.2.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-lang3-3.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/freemarker-2.3.19.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/javassist-3.11.0.GA.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/ognl-3.0.6.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/struts2-core-2.3.16.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/xwork-core-2.3.16.1.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-jdbc-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-expression-3.2.9.RELEASE.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/slf4j-api-1.7.25.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/struts2-spring-plugin-2.3.16.3.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/aspectjrt.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/aspectjweaver.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/spring-aop.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/aopalliance-1.0.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-codec-1.9.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-io-2.4.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/json.jar"/>
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/ueditor-1.1.2.jar"/>
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>
25 changes: 25 additions & 0 deletions sshTest/.myhibernatedata
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#MyEclipse Hibernate Properties
#Sun Apr 02 17:22:30 CST 2017
sessionFactoryName=
genBasicCompId=false
profile=
daoSFId=
version=3.3
jndiPath=
detectM2M=false
reStrategyClass=
detectO2O=false
springDaoFile=
useJavaTypes=true
keyGenerator=
libInstallFolder=<no jars/zips in selected libraries>
addLibs2Project=true
genVersionTag=false
sessionFactoryId=sessionFactory
basePersistenceClass=
genAnnotations=false
reSettingsFile=
configFile=/sshTest/src/applicationContext.xml
createConfigFile=false
addLibs2Classpath=true
baseDaoClass=
13 changes: 13 additions & 0 deletions sshTest/.mymetadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="sshTest"
id="myeclipse.1491124782217"
context-root="/sshTest"
j2ee-spec="5.0"
archive="sshTest.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>

7 changes: 7 additions & 0 deletions sshTest/.mystrutsdata
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<MyEclipseStrutsProperties>
<strutsVersion>4</strutsVersion>
<basePackage></basePackage>
<strutsPattern>0</strutsPattern>
<servletName>action</servletName>
</MyEclipseStrutsProperties>
63 changes: 63 additions & 0 deletions sshTest/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>sshTest</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.springframework.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.hibernate.HibernateBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>
<nature>com.genuitec.eclipse.springframework.springnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>com.genuitec.eclipse.cross.easystruts.eclipse.easystrutsnature</nature>
</natures>
</projectDescription>
12 changes: 12 additions & 0 deletions sshTest/.settings/.jsdtscope
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="src" path="WebRoot"/>
<classpathentry kind="output" path=""/>
</classpath>
4 changes: 4 additions & 0 deletions sshTest/.settings/com.genuitec.eclipse.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#Sat May 06 20:32:19 CST 2017
eclipse.preferences.version=1
validator.Checked=WebRoot/wangEditor-2.1.23/src/js/parts/00100-start.js,WebRoot/ueditor.all.js,WebRoot/js/ueditor.all.js,WebRoot/wangEditor-2.1.23/src/js/parts/9zzzz-end.js,WebRoot/wangEditor-2.1.23/dist/js/wangEditor.min.js,WebRoot/wangEditor-2.1.23/test/seajs/js/sea.js
validator.Unchecked=
7 changes: 7 additions & 0 deletions sshTest/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#Sun Apr 02 17:19:42 CST 2017
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
1 change: 1 addition & 0 deletions sshTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Window
15 changes: 15 additions & 0 deletions sshTest/.springBeans
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<beansProjectDescription>
<version>1</version>
<pluginVersion><![CDATA[2.2.0.me201003052220]]></pluginVersion>
<configSuffixes>
<configSuffix><![CDATA[xml]]></configSuffix>
</configSuffixes>
<enableImports><![CDATA[false]]></enableImports>
<configs>
<config>src/applicationContext.xml</config>
</configs>
<configSets>
</configSets>
<springVersion>3.0</springVersion>
</beansProjectDescription>
3 changes: 3 additions & 0 deletions sshTest/WebRoot/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

26 changes: 26 additions & 0 deletions sshTest/WebRoot/WEB-INF/classes/Article.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.qsqs.model.Article" table="article" schema="myblog">
<id name="id" column="id">
<generator class="native" />
</id>
<property name="userId" column="userId"/>
<property name="title" column="title"/>
<property name="author" column="author"/>
<property name="date" column="date"/>
<property name="content" column="content"/>

<set name="comments" lazy="true" inverse="true" cascade="save-update">
<key>
<column name="articleId"/>
</key>
<one-to-many class="com.qsqs.model.CommentOfArticle" />
</set>

</class>
</hibernate-mapping>
17 changes: 17 additions & 0 deletions sshTest/WebRoot/WEB-INF/classes/CommentOfArticle.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.qsqs.model.CommentOfArticle" table="commentOfArticle" schema="myblog">
<id name="id" column="id">
<generator class="native" />
</id>
<property name="username" column="username"/>
<property name="date" column="date"/>
<property name="comment" column="comment"/>
<property name="articleId" column="articleId" />
</class>
</hibernate-mapping>
16 changes: 16 additions & 0 deletions sshTest/WebRoot/WEB-INF/classes/User.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!--
Mapping file autogenerated by MyEclipse Persistence Tools
-->
<hibernate-mapping>
<class name="com.qsqs.model.User" table="tb_user" schema="myblog">
<id name="userId" column="userid" >
<generator class="native" />
</id>
<property name="email" column="email"/>
<property name="username" column="username"/>
<property name="userpassword" column="userpassword"/>
</class>
</hibernate-mapping>
90 changes: 90 additions & 0 deletions sshTest/WebRoot/WEB-INF/classes/applicationContext.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?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:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">

<bean id="UserDao" class="com.qsqs.dao.Impl.UserDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="UserService" class="com.qsqs.service.Impl.UserServiceImpl">
<property name="userDao" ref="UserDao"></property>
</bean>
<bean id="UserAction" class="com.qsqs.action.UserAction" scope="prototype">
<property name="userService" ref="UserService"></property>
</bean>
<bean id="ArticleDao" class="com.qsqs.dao.Impl.ArticleDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="ArticleService" class="com.qsqs.service.Impl.ArticleServiceImpl">
<property name="articleDao" ref="ArticleDao"></property>
</bean>
<bean id="ArticleAction" class="com.qsqs.action.ArticleAction" scope="prototype">
<property name="articleService" ref="ArticleService"></property>
</bean>
<bean id="CommentOfArticleDao" class="com.qsqs.dao.Impl.CommentOfArticleDaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="CommentOfArticleService" class="com.qsqs.service.Impl.CommentOfArticleServiceImpl">
<property name="commentOfArticleDao" ref="CommentOfArticleDao"></property>
</bean>
<bean id="CommentOfArticleAction" class="com.qsqs.action.CommentOfArticleAction" scope="prototype">
<property name="commentOfArticleService" ref="CommentOfArticleService"></property>
</bean>

<!-- spring aop 配置(需导入spring-aop,aspectjrt,aspectjweaver,aopalliance) -->
<bean id="logging" class="com.qsqs.aspect.Aoptest">

</bean>
<aop:config>
<aop:aspect id="loggingAspect" ref="logging">

<aop:after-returning method="log" pointcut="execution(* com.qsqs.dao.Impl.UserDaoImpl.login(..))"/>

</aop:aspect>
</aop:config>

<!--
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.jdbc.OracleDriver">
</property>
<property name="url" value="jdbc:oracle:thin:@localhost:1521:JamesOracle">
</property>
<property name="username" value="James"></property>
<property name="password" value="jamesoracle"></property>
</bean>
-->

<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver">
</property>
<property name="url" value="jdbc:mysql://localhost:3306/myblog">
</property>
<property name="username" value="root"></property>
<property name="password" value="123"></property>
</bean>

<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
<prop key="hibernate.show_sql">true</prop>
</props>
</property>
<property name="mappingLocations">
<list>
<value>classpath:*.hbm.xml</value>
</list>
</property>
</bean>
</beans>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d596574

Please sign in to comment.