java - 创建 Riot CMS Spring Java 项目

标签 java spring spring-mvc content-management-system

创建 Riot CMS Spring Java 项目的步骤

  1. 我创建了名为 newRiotDemo 的 Java 动态项目并放入了 setup.xml (riotfamily.org/setup.xml) 在 WebContent
  2. 然后运行 ​​wget riotfamily.org/setup.xml && ant -f setup.xml 终端
  3. 然后刷新project.put index.html到Webcontent中。
  4. 控制台中没有异常(exception),现在没有标记,但没有得到我想要的 管理页面,同时提供 localhost:8080/newRiotDemo/riot (引用--> http://www.riotfamily.org/docs/quickstart.html )

有人可以帮助我如何进一步进行吗?我们应该在哪里包含从 https://github.com/riotfamily/riot/downloads 获得的防暴代码

最佳答案

嗨,

我尝试在终端中执行以下命令==>

mkdir my-riot
CD我的暴动 git 克隆 git://github.com/riotfamily/riot.git

git 克隆 git://github.com/riotfamily/riot-sculpture.git

CD骚乱

git checkout 9.0.x

ant安装发布

cd ../riot-骷髅

git checkout 9.0.x 和 ant war

获得的输出==> riot-sculpture.jar & riot-sculpt-mysystemloginname.war & 构建文件夹中的classes文件夹

然后我将上面的 riot-sculpt-mysystemloginname.war 导入 eclipse 并在浏览器中获得 localhost:8080/riot-sculpt-mysystemloginname/home/页面。

以管理员身份登录时,admin localhost:8080/riot-sculpt-mysystemloginname/riot/,我也可以在宠物和主页中看到工具栏。 注意:-如果您遇到“CSRF 安全错误”,只需将此代码放入 riot-servlet.xml:

        <override:properties ref="dwrController">
         <property name="configParams">
           <props>
          <prop key="crossDomainSessionSecurity">false</prop>
           </props>
           </property>
        </override:properties>

我希望该解决方案对某人有用。

关于java - 创建 Riot CMS Spring Java 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10990839/

相关文章:

java - Spring 3 MVC @Controller 与 AOP 拦截器?

java - 自定义服务器 SOAP 故障字符串

Java:同步关键字不会阻塞不同线程上的对象

java - Guava ImmutableBiMap 变为 LinkedHashMap 并导致 Spring Autowiring 错误

Spring Security - 具有 user-service-ref 属性的 JEE 标签丢失映射角色

javascript - 验证器 : onSuccess to return true or false not excuting

java - CardView 无法正常工作

java - iText java 无法正确解析 PDF/中的文本

java - Spring Framework 和 Apache CXF 中的自定义 JSON 序列化

java - spring mvc有 Controller Action 事件前后的概念吗?