发表于: 2018-01-01 23:50:43

1 457


一。今天根据以前庆东师兄的建议,上午做了Spring框架:撸了很多代码:

别的也没什么好记录的,一个TestSpring,运行老说找不到Application.xml,可我明明是做了啊,报错如下图:

里面的程序语言倒是没有爆红。下面是我做的Application.xml内容:

<?xml version="1.0" encoding="UTF-8"?>
<beans
       xmlns="http://www.springframework.org/schema/beans"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-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
       //www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.0.xsd">
   <bean name="c" class="com.how2java.pojo.Category">
       <property name="name" value="yyy" />
   </bean>
   <bean name="p" class="com.how2java.pojo.Product">
       <property name="name" value="product1" />
       <property name="category" ref="c"/>
   </bean>
   <bean name="s" class="com.how2java.service.ProductService">

   </bean>
   <bean id="loggerAspect" class="com.how2java.aspect.LoggerAspect"/>
   <aop:config>
       <aop:pointcut id="loggerCutpoint" expression="execution(* com.how2java.service.ProductService.*(..))" />
       <aop:aspect id="logAspect" ref="loggerAspect">
           <aop:around pointcut-ref="loggerCutpoint" method="log"/>

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

</beans>

二。下午购买了阿里云,配置。

其中有两个密码,一个是远程连接密码,一个是登陆Xshell的密码,老是容易搞混。

接着就是在阿里云里面安装JDK,tomcat。

CD加路径,可以在centos更改操作文件夹


没做完,做到配置 JAVA-HOME这一步做不下去了,要求是编辑 /usr/local/tomcat/bin/catalina.sh 文件,配置 JAVA-HOME 变量。但现实做起来,和教程不太一样。不是教程展示的页面,不确定是否完全根据教程的语言该下去,何况教程截图了一部分,如果这部分根据教程改了,其余的地方怎么办?

#   CATALINA_TMPDIR (Optional) Directory path location of temporary directory

#                   the JVM should use (java.io.tmpdir).  Defaults to

#                   $CATALINA_BASE/temp.

#

JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk.x86_64

#

#   JAVA_HOME       Must point at your Java Development Kit installation.

#                   Required to run the with the "debug" argument.

#

#   JRE_HOME        Must point at your Java Runtime installation.

#                   Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME

#                   are both set, JRE_HOME is used.

#

#   JAVA_OPTS       (Optional) Java runtime options used when any command

#                   is executed.

#                   Include here and not in CATALINA_OPTS all options, that

#                   should be used by Tomcat and also by the stop process,

#                   the version command etc.

#                   Most options should go into CATALINA_OPTS.



明天的计划:部署完服务器,剩余的时间补基础或者进行插数据

遇到的问题:Xshell配置JAVA_HOME没做完

今天的收获:部署服务器完成了一半

java任务一开始时间:2017.12.05

预计demo时间:2018.01-05

可能有延期风险,原因是:基础太差,很多任务的教程都卡壳,进行不下去。

禅道链接地址:http://task.ptteng.com/zentao/project-task-501.html





返回列表 返回列表
评论

    分享到