最新公告
  • 新注册用户请前往个人中心绑定邮箱以便接收相关凭证邮件!!!点击前往个人中心
  • 从零到企业级SSM电商项目实战教程(十七)logback和ftp服务器配置

    logback配置

    
    
        
            UTF-8
            
                [%d{HH:mm:ss.SSS}][%p][%c{40}][%t] %m%n
            
            
                DEBUG
            
        
    
        
            
            /developer/apache-tomcat-8.0.52/logs/mmall.log
            
                /developer/apache-tomcat-8.0.52/logs/mmall.log.%d{yyyy-MM-dd}.gz
                true
                10
            
            
                [%d{HH:mm:ss.SSS}][%p][%c{40}][%t] %m%n
            
        
    
    
        
            
            /developer/apache-tomcat-8.0.52/logs/error.log
            
                /developer/apache-tomcat-8.0.52/logs/error.log.%d{yyyy-MM-dd}.gz
                
                true
                10
            
            
                [%d{HH:mm:ss.SSS}][%p][%c{40}][%t] %m%n
            
            
                ERROR
                ACCEPT
                DENY
            
        
    
        
            
            
        
    
    
    
        
    
        
    
        
            
        
    
        
            
        
        
            
        
    
        
            
        
    
    
        
            
            
        
    
    
    

    ftp服务器配置mmall.properties

    主要有下面这些配置项,等我们开发到后面时再完善

    ftp.server.ip=
    ftp.user=
    ftp.pass=
    ftp.server.http.prefix=
    alipay.callback.url=
    password.salt =
    
    

    项目初始化代码提交

    至此我们完成了项目的初始化,接下来将项目初始化文件提交到GitHub上。

    $ git status

    On branch v1.0
    Your branch is up to date with 'origin/v1.0'.
    
    Changes not staged for commit:
      (use "git add ..." to update what will be committed)
      (use "git checkout -- ..." to discard changes in working directory)
    
            modified:   .gitignore
            modified:   pom.xml
            modified:   src/main/webapp/WEB-INF/web.xml
    
    Untracked files:
      (use "git add ..." to include in what will be committed)
    
            src/main/java/
            src/main/resources/
            src/main/tools/
            src/main/webapp/WEB-INF/dispatcher-servlet.xml
    
    no changes added to commit (use "git add" and/or "git commit -a")
    

    $ git add .

    warning: LF will be replaced by CRLF in src/main/webapp/WEB-INF/web.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/applicationContext-datasource.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/applicationContext.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/generatorConfig.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/logback.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/CartMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/CategoryMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/OrderItemMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/OrderMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/PayInfoMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/ProductMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/ShippingMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mappers/UserMapper.xml.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/resources/mmall.properties.
    The file will have its original line endings in your working directory.
    warning: LF will be replaced by CRLF in src/main/webapp/WEB-INF/dispatcher-servlet.xml.
    The file will have its original line endings in your working directory.
    

    $ git status

    On branch v1.0
    Your branch is up to date with 'origin/v1.0'.
    
    Changes to be committed:
      (use "git reset HEAD ..." to unstage)
    
            modified:   .gitignore
            modified:   pom.xml
            new file:   src/main/java/com/mmall/dao/CartMapper.java
            new file:   src/main/java/com/mmall/dao/CategoryMapper.java
            new file:   src/main/java/com/mmall/dao/OrderItemMapper.java
            new file:   src/main/java/com/mmall/dao/OrderMapper.java
            new file:   src/main/java/com/mmall/dao/PayInfoMapper.java
            new file:   src/main/java/com/mmall/dao/ProductMapper.java
            new file:   src/main/java/com/mmall/dao/ShippingMapper.java
            new file:   src/main/java/com/mmall/dao/UserMapper.java
            new file:   src/main/java/com/mmall/pojo/Cart.java
            new file:   src/main/java/com/mmall/pojo/Category.java
            new file:   src/main/java/com/mmall/pojo/Order.java
            new file:   src/main/java/com/mmall/pojo/OrderItem.java
            new file:   src/main/java/com/mmall/pojo/PayInfo.java
            new file:   src/main/java/com/mmall/pojo/Product.java
            new file:   src/main/java/com/mmall/pojo/Shipping.java
            new file:   src/main/java/com/mmall/pojo/User.java
            new file:   src/main/resources/applicationContext-datasource.xml
            new file:   src/main/resources/applicationContext.xml
            new file:   src/main/resources/datasource.properties
            new file:   src/main/resources/generatorConfig.xml
            new file:   src/main/resources/logback.xml
            new file:   src/main/resources/mappers/CartMapper.xml
            new file:   src/main/resources/mappers/CategoryMapper.xml
            new file:   src/main/resources/mappers/OrderItemMapper.xml
            new file:   src/main/resources/mappers/OrderMapper.xml
            new file:   src/main/resources/mappers/PayInfoMapper.xml
            new file:   src/main/resources/mappers/ProductMapper.xml
            new file:   src/main/resources/mappers/ShippingMapper.xml
            new file:   src/main/resources/mappers/UserMapper.xml
            new file:   src/main/resources/mmall.properties
            new file:   src/main/tools/mysql-connector-java-5.1.6-bin.jar
            new file:   src/main/webapp/WEB-INF/dispatcher-servlet.xml
            modified:   src/main/webapp/WEB-INF/web.xml
    

    $ git commit -am ‘project init commit’

    [v1.0 fff56e7] project init commit
     35 files changed, 3406 insertions(+), 77 deletions(-)
     rewrite pom.xml (72%)
     create mode 100644 src/main/java/com/mmall/dao/CartMapper.java
     create mode 100644 src/main/java/com/mmall/dao/CategoryMapper.java
     create mode 100644 src/main/java/com/mmall/dao/OrderItemMapper.java
     create mode 100644 src/main/java/com/mmall/dao/OrderMapper.java
     create mode 100644 src/main/java/com/mmall/dao/PayInfoMapper.java
     create mode 100644 src/main/java/com/mmall/dao/ProductMapper.java
     create mode 100644 src/main/java/com/mmall/dao/ShippingMapper.java
     create mode 100644 src/main/java/com/mmall/dao/UserMapper.java
     create mode 100644 src/main/java/com/mmall/pojo/Cart.java
     create mode 100644 src/main/java/com/mmall/pojo/Category.java
     create mode 100644 src/main/java/com/mmall/pojo/Order.java
     create mode 100644 src/main/java/com/mmall/pojo/OrderItem.java
     create mode 100644 src/main/java/com/mmall/pojo/PayInfo.java
     create mode 100644 src/main/java/com/mmall/pojo/Product.java
     create mode 100644 src/main/java/com/mmall/pojo/Shipping.java
     create mode 100644 src/main/java/com/mmall/pojo/User.java
     create mode 100644 src/main/resources/applicationContext-datasource.xml
     create mode 100644 src/main/resources/applicationContext.xml
     create mode 100644 src/main/resources/datasource.properties
     create mode 100644 src/main/resources/generatorConfig.xml
     create mode 100644 src/main/resources/logback.xml
     create mode 100644 src/main/resources/mappers/CartMapper.xml
     create mode 100644 src/main/resources/mappers/CategoryMapper.xml
     create mode 100644 src/main/resources/mappers/OrderItemMapper.xml
     create mode 100644 src/main/resources/mappers/OrderMapper.xml
     create mode 100644 src/main/resources/mappers/PayInfoMapper.xml
     create mode 100644 src/main/resources/mappers/ProductMapper.xml
     create mode 100644 src/main/resources/mappers/ShippingMapper.xml
     create mode 100644 src/main/resources/mappers/UserMapper.xml
     create mode 100644 src/main/resources/mmall.properties
     create mode 100644 src/main/tools/mysql-connector-java-5.1.6-bin.jar
     create mode 100644 src/main/webapp/WEB-INF/dispatcher-servlet.xml
     rewrite src/main/webapp/WEB-INF/web.xml (93%)
    

    $ git push

    Counting objects: 49, done.
    Delta compression using up to 4 threads.
    Compressing objects: 100% (46/46), done.
    Writing objects: 100% (49/49), 679.67 KiB | 1.44 MiB/s, done.
    Total 49 (delta 19), reused 0 (delta 0)
    remote: Resolving deltas: 100% (19/19), completed with 1 local object.
    To github.com:geekerstar/mmall.git
       5b9c632..fff56e7  v1.0 -> v1.0
    

    本站所有文章均由网友分享,仅用于参考学习用,请勿直接转载,如有侵权,请联系网站客服删除相关文章。若由于商用引起版权纠纷,一切责任均由使用者承担
    极客文库 » 从零到企业级SSM电商项目实战教程(十七)logback和ftp服务器配置

    常见问题FAQ

    如果资源链接失效了怎么办?
    本站用户分享的所有资源都有自动备份机制,如果资源链接失效,请联系本站客服QQ:2580505920更新资源地址。
    如果用户分享的资源与描述不符怎么办?
    可以联系客服QQ:2580505920,如果要求合理可以安排退款或者退赞助积分。
    如何分享个人资源获取赞助积分或其他奖励?
    本站用户可以分享自己的资源,但是必须保证资源没有侵权行为。点击个人中心,根据操作填写并上传即可。资源所获收益完全归属上传者,每周可申请提现一次。
    如果您发现了本资源有侵权行为怎么办?
    及时联系客服QQ:2580505920,核实予以删除。

    参与讨论

    • 127会员总数(位)
    • 3724资源总数(个)
    • 0本周发布(个)
    • 0 今日发布(个)
    • 300稳定运行(天)

    欢迎加入「极客文库」,成为原创作者从这里开始!

    立即加入 了解更多
    成为赞助用户享有更多特权立即升级