Giter Site home page Giter Site logo

关于mac系统的问题 about swoft HOT 4 CLOSED

swoft-cloud avatar swoft-cloud commented on May 1, 2024
关于mac系统的问题

from swoft.

Comments (4)

aprchen avatar aprchen commented on May 1, 2024

image
php 7.13, swoole 2.07, 控制器配置前缀无效
image

from swoft.

inhere avatar inhere commented on May 1, 2024

哦 这里是对的

@RequestMapping() 里 route 如果以 / 开始 会认为你要加个绝对路径的路由
就不会再加上前面的 前缀/wechat

from swoft.

aprchen avatar aprchen commented on May 1, 2024

啊,这么做感觉有些别扭啊,我如果设置了前缀,那么我想设置当前控制的默认action 怎么设置?一般来说,action设置 / 是不是就可以了,感觉你们这么处理有些多余,直接连接感觉就不错,简单直观一些

from swoft.

inhere avatar inhere commented on May 1, 2024

是有一点不直观
但是更灵活一些 比如你想给action定义一个与前缀完全无关的 路由path 时
默认的话 就只有写一个跟前缀一样的 path

from swoft.

Related Issues (20)

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.