Code Monkey home page Code Monkey logo

server-guideline-thymeleaf's Introduction

Macchinetta Server Framework (1.x) Development Guideline

This guideline provides best practices to develop highly maintainable Web applications using full stack framework focussing on Spring Framework, Spring MVC, Spring Security and MyBatis.

This guideline helps to proceed with the software development (mainly coding) smoothly.

Source files

Source files of this guideline are stored into following directories.

  • Japanese version : {repository root}/source/

Source file format

This guideline is written by the reStructuredText format(.rst). About the reStructuredText format, refer to the Sphinx documentation contents.

How to build

We build to HTML and PDF files using the Sphinx. About the Sphinx, refer to the Sphinx documentation contents.

Install the Sphinx

Please install the Python and Sphinx.

Note: Creating PDF file

If create a PDF file, LaTeX environment is required.

Clone a repository

Please clone a Macchinetta/server-guideline-thymeleaf repository or forked your repository.

git clone https://github.com/Macchinetta/server-guideline-thymeleaf.git

or

git clone https://github.com/{your account}/server-guideline-thymeleaf.git

Build HTML files

Please execute the build-html.sh or build-html.bat. If build is successful, HTML files generate to the {your repository}/build/html/ directory.

Linux or Mac:

$ cd {your repository directory}
$ ./build-html.sh

Windows:

> cd {your repository directory}
> build-html.bat

Build a PDF file

Please execute the build-pdf.sh. If build is successful, PDF file(MacchinettaServerFrameworkDevelopmentGuideline.pdf) generate to the {your repository}/build/latex/ directory.

$ cd {your repository directory}
$ ./build-pdf.sh

Terms of use

Terms of use refer to here.

server-guideline-thymeleaf's People

Contributors

nota-ja avatar macchinetta-fw avatar tiwatsuka avatar

Stargazers

mcamcalin avatar JUNYA KITAYAMA avatar caramelopardalis avatar smd101 avatar NeriUdon avatar

Watchers

James Cloos avatar  avatar smd101 avatar

Forkers

phoenix110

server-guideline-thymeleaf's Issues

The document of todo tutorial with Thymeleaf seems same as the one with JSP.

Description

日本語で失礼します。
この度、MacchinettaのガイドラインをベースにThymeleafを学習しようと思い11.1. チュートリアル(Todoアプリケーション)に従ってarchetypeArtifactId=macchinetta-web-blank-noorm-thymeleaf-archetypeを指定して作成したブランクプロジェクトを使って演習を行っていました。
すると、11.1.3.5. プロジェクトの動作確認で「ブランクプロジェクトから提供されているJSP」と記述があり、その下にThymeleaf版のブランクプロジェクトには生成されないJSPのコード例が表示されていることに気づきました。
さらに読み進めると11.1.4.2.2.3. JSPの作成という節があり、list.jspを作成するよう書かれていますが、記事通りに作成して実行すると、todo/list.htmlがないというエラーになります。

Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/views/todo/list.html]
	at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:141)
	at org.thymeleaf.spring4.templateresource.SpringResourceTemplateResource.reader(SpringResourceTemplateResource.java:103)
	at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:223)
	... 101 more

ためしにJSP版のTodoチュートリアルのページと、Thymeleaf版のTodoチュートリアルのページのdiffを取ったところ、以下のようにブランクプロジェクトを生成するコマンドしか差分がないことがわかりました。

213c213
<     Bash上で\ ``mvn archetype:generate``\ を実行する場合は、以下のように"\ ``^``\" を\ ``\``\ に置き換えて実行すればよい。
---
>     Bash上で\ ``mvn archetype:generate``\ を実行する場合は、以下のように"\ ``^``\" を"\ ``\``\" に置き換えて実行すればよい。
219c219
<          -DarchetypeArtifactId=macchinetta-web-blank-noorm-thymeleaf-archetype\
---
>          -DarchetypeArtifactId=macchinetta-web-blank-noorm-archetype\
239c239
<      -DarchetypeArtifactId=macchinetta-web-blank-noorm-thymeleaf-archetype^
---
>      -DarchetypeArtifactId=macchinetta-web-blank-noorm-archetype^
257c257
<      -DarchetypeArtifactId=macchinetta-web-blank-thymeleaf-archetype^
---
>      -DarchetypeArtifactId=macchinetta-web-blank-archetype^

これはThymeleaf版の誤植ではないでしょうか?

Possible Solutions

(Please write ideas or candidates of solutions for the problem if you have)

Affects Version/s

  • 1.X.X.RELEASE

Fix Version/s

(To be written later by project member)

Issue Links

  • #XXX

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.