你好,我使用的是最新版本的阔叶树(5.2.7)。该项目在使用HSQL时运行得非常好。问题是,我正在尝试迁移到mysql。我正在学习这里和这里的教程。
问题是,我在根pom.xml中找不到教程提到的依赖项。
因此,例如,本教程在步骤3中提到:
在根pom.xml中,在with org.apache.tomcat.maven下面的部分中找到以下内容
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.3.1</version>
<type>jar</type>
<scope>compile</scope>
这应该在哪里存在呢?我可能有一个巨大的误解,但我找不到it.As,因为我知道这是我的根pom.xml (??)看起来就像这样
<?xml version="1.0" encoding="UTF-8"?>">http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-boot-starter-parent</artifactId>
<version>5.2.7-GA</version>
<relativePath />
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany-community</groupId>
<artifactId>boot-community-demo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Broadleaf Spring Boot Community Demo</name>
<repositories>
<repository>
<id>public snapshots</id>
<name>public snapshots</name>
<url>http://nexus.broadleafcommerce.org/nexus/content/groups/community-snapshots/</url>
</repository>
<repository>
<id>public releases</id>
<name>public releases</name>
<url>http://nexus.broadleafcommerce.org/nexus/content/groups/community-releases/</url>
</repository>
</repositories>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<google-closure-compiler.version>v20180506</google-closure-compiler.version>
<debug.args>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${debug.port}</debug.args>
<boot.jvm.memory>-Xmx1536M</boot.jvm.memory>
<boot.jvm.args>${boot.jvm.memory} ${debug.args}</boot.jvm.args>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.uri>${project.baseUri}</project.uri>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>${boot.jvm.args}</jvmArguments>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.7</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>jrebel</id>
<properties>
<boot.jvm.args>${boot.jvm.memory} ${debug.args} ${jrebel.agent.args}</boot.jvm.args>
</properties>
</profile>
</profiles>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.mycompany-community</groupId>
<artifactId>boot-community-demo-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.javascript</groupId>
<artifactId>closure-compiler-unshaded</artifactId>
<version>${google-closure-compiler.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<modules>
<module>core</module>
<module>site</module>
<module>admin</module>
<module>api</module>
</modules>
我错过了什么有什么建议吗?
谢谢!
发布于 2018-12-11 17:18:07
于是我在阔叶树的github上发表了一个问题,并找到了解决方案。对于对未来感兴趣的人来说,这可能是有用的:
https://github.com/BroadleafCommerce/DemoSite/issues/40
我建议不要遵循迁移到mysql的教程,因为它似乎已经过时了。遵循我在github链接中描述的更改。
第一次创建数据库时,可能需要花费15+分钟。为此做好准备,不要停止编译过程。第一次可以将"blPU.hibernate.hbm2ddl.auto“从"create”更改为"none“或"update”。
最后,在更新之后,如果您尝试访问localhost:8081/admin,您可能会得到这个错误。
2018-12-08 19:55:26.540 INFO 6616 --- [nio-8081-exec-3] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header正如贡献者所告诉的那样,没有已知的解决方案,所以您可以直接转到https链接:https://localhost:8444/admin
https://stackoverflow.com/questions/53674821
复制相似问题