Git Product home page Git Product logo

labthings's Introduction

我第一次尝试设计spring struts2 hibernate三个框架整合的代码结构,并使用专业工具maven管理项目依赖,虽然与现在最时髦的后台技术spring boot等相比还差很多,但大体上层次分明,逻辑简单,甚至可以使用spring AOP面向切面地拓展,不会再像之前做的工位管理软件最后因代码混乱烂尾了。但很遗憾的是我没学过CSS样式表,前端界面上问题很多,充满各种遮挡,错位和奇怪的文字颜色,而且没来得及设计错误提示页面,我以后会尽量解决这些问题,希望它能成为一个能真正投入使用的软件。

intellij开发环境搭建方法:

  1. 在intellij下,file->new->project from version control->git,url里填我的git地址,https://github.com/NoClassDefError/LabThings.git,如果时间太长, 直接进入https://github.com/NoClassDefError/LabThings下载代码,下载解压之后使用intellij,file>new->project from existing sources打开,注意勾选maven,Search for projects automatically
  2. 打开project structure,在其中Facets下分别配置web,spring,struts2框架,即分别点击左边的加号,选择它们,再点击右边的加号,配置文件的路径, web框架对应main/webapp/WEB-INF/web.xml,spring和struts2的配置文件intellij会自动找到,勾选上即可。 在settings->Builld->Compiler->Java complier配置project bytecode version 为java8。
  3. 在Aritifacts中创建 artifact,在artifact的WEB-INF下创建lib目录,把右边的依赖文件全部添加到左边的lib中
  4. 使用src/main/resources/tables.sql在你的电脑上的mysql中建库,不需要管它其中的乱码
  5. 在src/main/resources/db.properties里修改成你数据库的参数,show_sql改成true
  6. 点击run configurations,再点击加号,选择本地的tomcat, 在你电脑下新建C:\root\img目录,用于存放图片
  7. 在intellij tomcat的配置中,点击deployment,一是部署刚刚创建的artifact,二是部署刚刚创建的C:\root文件夹,application Context为/root
  8. 点击启动就能看到网页了,点击左边的物品分类树可以展开

项目结构: img

网页图样: img

labthings's People

Contributors

noclassdeferror avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.