Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lushuaiyu opened this issue Mar 27, 2019 · 5 comments
Open

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

Lushuaiyu opened this issue Mar 27, 2019 · 5 comments

Comments

@Lushuaiyu
Copy link

No description provided.

@sunweiguo
Copy link
Owner

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

@Lushuaiyu
Copy link
Author

Lushuaiyu commented Mar 28, 2019 via email

@ke00ke
Copy link

ke00ke commented Apr 26, 2019

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

@ke00ke
Copy link

ke00ke commented Apr 26, 2019

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

@Lushuaiyu
Copy link
Author

Lushuaiyu commented Apr 26, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants