MMall icon indicating copy to clipboard operation
MMall copied to clipboard

请问 静态资源在哪 我没找到

Open Lushuaiyu opened this issue 6 years ago • 5 comments

Lushuaiyu avatar Mar 27 '19 07:03 Lushuaiyu

https://github.com/sunweiguo/snailmall-front readme的最后

sunweiguo avatar Mar 28 '19 14:03 sunweiguo

好的 谢谢。我看到了。我研究下前端框架

「fossi [email protected]」在 2019年3月28日 週四,22:07 寫道:

https://github.com/sunweiguo/snailmall-front readme的最后

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunweiguo/MMall/issues/1#issuecomment-477610076, or mute the thread https://github.com/notifications/unsubscribe-auth/AlTc5k7Dq0R_gYiBNj2sr0eXsg6gfid9ks5vbMytgaJpZM4cNKWx .

Lushuaiyu avatar Mar 28 '19 15:03 Lushuaiyu

最近在学习你的项目,请问你有没遇到token问题,就是cookie只能获取到jsessionid不能获取到自定义的token。虽然作为入门者,还是推荐使用pom中设置环境profiles参数,在yml中使用active: ‘@spring.profiles.active@’方式进行环境切换,也方便打包。

ke00ke avatar Apr 26 '19 17:04 ke00ke

pom中: src/main/java **/*.xml src/main/resources

                <include>**/*.*</include>
            </includes>
            <filtering>true</filtering>
        </resource>
    </resources>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>
</build>

<properties>
    <resource.delimiter>@</resource.delimiter>
</properties>

<profiles>
    <profile>
        <id>dev</id>
        <properties>
            <spring.profiles.active>dev</spring.profiles.active>
        </properties>
    </profile>
    <profile>
        <id>test</id>
        <properties>
            <spring.profiles.active>test</spring.profiles.active>
        </properties>
    </profile>
</profiles>

yml中: spring: profiles: active: '@spring.profiles.active@'

eureka: client: service-url: defaultZone: http://192.168.1.104:8084/eureka

ke00ke avatar Apr 26 '19 17:04 ke00ke

没有遇到哎

「ke00ke [email protected]」在 2019年4月27日 週六,上午1:58 寫道:

pom中:

src/main/java

**/*.xml

src/main/resources

            <include>**/*.*</include>

        </includes>

        <filtering>true</filtering>

    </resource>

</resources>

<plugins>

    <plugin>

        <groupId>org.springframework.boot</groupId>

        <artifactId>spring-boot-maven-plugin</artifactId>

    </plugin>

</plugins>
<resource.delimiter>@</resource.delimiter>
<profile>

    <id>dev</id>

    <properties>

        <spring.profiles.active>dev</spring.profiles.active>

    </properties>

</profile>

<profile>

    <id>test</id>

    <properties>

        <spring.profiles.active>test</spring.profiles.active>

    </properties>

</profile>

yml中: spring: profiles: active: '@spring.profiles.active@'

eureka: client: service-url: defaultZone: http://192.168.1.104:8084/eureka

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunweiguo/MMall/issues/1#issuecomment-487146589, or mute the thread https://github.com/notifications/unsubscribe-auth/AJKNZZWTYZRKE75E6VZ2PXDPSM7DHANCNFSM4HBUUWYQ .

Lushuaiyu avatar Apr 26 '19 23:04 Lushuaiyu